Click here to Skip to main content
15,888,521 members
Home / Discussions / C#
   

C#

 
GeneralRe: randomization of numbers without duplication in C# Pin
Luc Pattyn13-Aug-09 2:42
sitebuilderLuc Pattyn13-Aug-09 2:42 
GeneralRe: randomization of numbers without duplication in C# Pin
Pete O'Hanlon13-Aug-09 2:58
mvePete O'Hanlon13-Aug-09 2:58 
GeneralRe: randomization of numbers without duplication in C# Pin
Luc Pattyn13-Aug-09 3:07
sitebuilderLuc Pattyn13-Aug-09 3:07 
GeneralRe: randomization of numbers without duplication in C# Pin
benjymous13-Aug-09 4:46
benjymous13-Aug-09 4:46 
JokeRe: randomization of numbers without duplication in C# Pin
Luc Pattyn13-Aug-09 4:50
sitebuilderLuc Pattyn13-Aug-09 4:50 
GeneralRe: randomization of numbers without duplication in C# Pin
molesworth13-Aug-09 3:12
molesworth13-Aug-09 3:12 
GeneralRe: randomization of numbers without duplication in C# Pin
Pete O'Hanlon13-Aug-09 4:11
mvePete O'Hanlon13-Aug-09 4:11 
GeneralRe: randomization of numbers without duplication in C# Pin
Luc Pattyn13-Aug-09 4:21
sitebuilderLuc Pattyn13-Aug-09 4:21 
I'm afraid there is no way you can tell the RNG what all the numbers are that have already been picked, so the best you can achieve is avoid repeating the previous number, not all the older ones.

Of course if all the OP wants to avoid is consecutive duplication, then your way would be fine.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: randomization of numbers without duplication in C# Pin
molesworth13-Aug-09 4:52
molesworth13-Aug-09 4:52 
GeneralRe: randomization of numbers without duplication in C# Pin
Pete O'Hanlon13-Aug-09 9:19
mvePete O'Hanlon13-Aug-09 9:19 
GeneralRe: randomization of numbers without duplication in C# Pin
benjymous13-Aug-09 4:44
benjymous13-Aug-09 4:44 
AnswerRe: randomization of numbers without duplication in C# Pin
PIEBALDconsult13-Aug-09 5:13
mvePIEBALDconsult13-Aug-09 5:13 
AnswerRe: randomization of numbers without duplication in C# Pin
cmk13-Aug-09 11:34
cmk13-Aug-09 11:34 
QuestionComexception with addpicture Pin
Member 415407413-Aug-09 0:44
Member 415407413-Aug-09 0:44 
AnswerRe: Comexception with addpicture Pin
Luc Pattyn13-Aug-09 1:27
sitebuilderLuc Pattyn13-Aug-09 1:27 
GeneralRe: Comexception with addpicture Pin
Member 415407413-Aug-09 3:23
Member 415407413-Aug-09 3:23 
GeneralRe: Comexception with addpicture Pin
Luc Pattyn13-Aug-09 3:35
sitebuilderLuc Pattyn13-Aug-09 3:35 
GeneralRe: Comexception with addpicture Pin
Member 415407413-Aug-09 3:45
Member 415407413-Aug-09 3:45 
QuestionLoad Report Failed Pin
Milind Panchal13-Aug-09 0:07
Milind Panchal13-Aug-09 0:07 
AnswerRe: Load Report Failed Pin
Abhishek Sur13-Aug-09 2:41
professionalAbhishek Sur13-Aug-09 2:41 
QuestionGet Html Element Pin
Mohsen Esmailpour12-Aug-09 23:44
professionalMohsen Esmailpour12-Aug-09 23:44 
AnswerRe: Get Html Element Pin
0x3c012-Aug-09 23:50
0x3c012-Aug-09 23:50 
GeneralRe: Get Html Element Pin
kKamel12-Aug-09 23:51
kKamel12-Aug-09 23:51 
GeneralRe: Get Html Element Pin
0x3c012-Aug-09 23:56
0x3c012-Aug-09 23:56 
GeneralRe: Get Html Element Pin
kKamel13-Aug-09 0:14
kKamel13-Aug-09 0:14 

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.