Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# tamir sharp ssh, scp incomplete file transfer Pin
Michael Gaida27-Jan-14 2:23
Michael Gaida27-Jan-14 2:23 
QuestionProblem with shuffling array elements and displaying them Pin
Member 1052812316-Jan-14 2:36
Member 1052812316-Jan-14 2:36 
AnswerRe: Problem with shuffling array elements and displaying them Pin
Eddy Vluggen16-Jan-14 3:03
professionalEddy Vluggen16-Jan-14 3:03 
GeneralRe: Problem with shuffling array elements and displaying them Pin
Member 1052812317-Jan-14 3:53
Member 1052812317-Jan-14 3:53 
AnswerRe: Problem with shuffling array elements and displaying them Pin
BillWoodruff16-Jan-14 4:03
professionalBillWoodruff16-Jan-14 4:03 
GeneralRe: Problem with shuffling array elements and displaying them Pin
CPallini16-Jan-14 21:43
mveCPallini16-Jan-14 21:43 
AnswerRe: Problem with shuffling array elements and displaying them Pin
OriginalGriff16-Jan-14 8:31
mveOriginalGriff16-Jan-14 8:31 
GeneralRe: Problem with shuffling array elements and displaying them Pin
BillWoodruff16-Jan-14 17:33
professionalBillWoodruff16-Jan-14 17:33 
Really satisfying to see some back-and-forth here, and a variety of solutions !
OriginalGriff wrote:
your Random.Next call can't return zero
I beg to differ: the 'Next method of the Random Class can, indeed return it's first minValue argument:

"minValue Type: System.Int32 The inclusive lower bound of the random number returned." Oh ... wait ... I see ... ... my bad ... you are referring only to Eddie's code.

I agree with you that initializing the Array in advance is a waste of time. If I were going to "shuffle," I'd probably use the technique shown in the article I cited.
OriginalGriff wrote:
does this make any sense to you?
Everything you say makes sense to me ... dammit Smile | :)
“But I don't want to go among mad people,” Alice remarked.

“Oh, you can't help that,” said the Cat: “we're all mad here. I'm mad. You're mad.”

“How do you know I'm mad?” said Alice.

“You must be," said the Cat, or you wouldn't have come here.” Lewis Carroll

GeneralRe: Problem with shuffling array elements and displaying them Pin
OriginalGriff16-Jan-14 19:51
mveOriginalGriff16-Jan-14 19:51 
AnswerRe: Problem with shuffling array elements and displaying them Pin
BillWoodruff16-Jan-14 19:41
professionalBillWoodruff16-Jan-14 19:41 
AnswerMessage Closed Pin
16-Jan-14 22:43
harold aptroot16-Jan-14 22:43 
GeneralRe: All of the above is actually wrong Pin
CPallini16-Jan-14 23:38
mveCPallini16-Jan-14 23:38 
QuestionDIfference between Q/A and Discussion? Pin
agent_kruger16-Jan-14 1:43
professionalagent_kruger16-Jan-14 1:43 
AnswerRe: DIfference between Q/A and Discussion? Pin
Richard MacCutchan16-Jan-14 2:10
mveRichard MacCutchan16-Jan-14 2:10 
AnswerRe: DIfference between Q/A and Discussion? PinPopular
BillWoodruff16-Jan-14 6:02
professionalBillWoodruff16-Jan-14 6:02 
GeneralRe: DIfference between Q/A and Discussion? Pin
agent_kruger16-Jan-14 23:38
professionalagent_kruger16-Jan-14 23:38 
GeneralRe: DIfference between Q/A and Discussion? Pin
Pete O'Hanlon16-Jan-14 23:55
mvePete O'Hanlon16-Jan-14 23:55 
QuestionHow to use SQL store procedure in LINQ in C#? Pin
Brijesh Kumar Prajapati16-Jan-14 0:09
Brijesh Kumar Prajapati16-Jan-14 0:09 
AnswerRe: How to use SQL store procedure in LINQ in C#? Pin
Eddy Vluggen16-Jan-14 0:17
professionalEddy Vluggen16-Jan-14 0:17 
QuestionApplication requires Microsoft.Vbe.Interop Ver .... installed in GAC Pin
emma.sun.sts15-Jan-14 22:35
emma.sun.sts15-Jan-14 22:35 
AnswerRe: Application requires Microsoft.Vbe.Interop Ver .... installed in GAC Pin
Wayne Gaylard15-Jan-14 23:05
professionalWayne Gaylard15-Jan-14 23:05 
GeneralRe: Application requires Microsoft.Vbe.Interop Ver .... installed in GAC Pin
emma.sun.sts16-Jan-14 23:10
emma.sun.sts16-Jan-14 23:10 
AnswerRe: Application requires Microsoft.Vbe.Interop Ver .... installed in GAC Pin
Freak3016-Jan-14 2:17
Freak3016-Jan-14 2:17 
GeneralRe: Application requires Microsoft.Vbe.Interop Ver .... installed in GAC Pin
emma.sun.sts16-Jan-14 23:05
emma.sun.sts16-Jan-14 23:05 
AnswerRe: Application requires Microsoft.Vbe.Interop Ver .... installed in GAC Pin
jschell16-Jan-14 8:33
jschell16-Jan-14 8:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.