Click here to Skip to main content
15,900,906 members
Home / Discussions / C#
   

C#

 
AnswerRe: barcode and how to use it Pin
Paul Conrad2-Jul-06 15:42
professionalPaul Conrad2-Jul-06 15:42 
AnswerRe: barcode and how to use it Pin
engsrini2-Jul-06 19:50
engsrini2-Jul-06 19:50 
GeneralRe: barcode and how to use it Pin
omar el halwagy3-Jul-06 0:48
omar el halwagy3-Jul-06 0:48 
AnswerRe: barcode and how to use it Pin
Mike Dimmick3-Jul-06 2:22
Mike Dimmick3-Jul-06 2:22 
QuestionHow to get very continuous random numbers Pin
sergestusxx2-Jul-06 11:17
sergestusxx2-Jul-06 11:17 
AnswerRe: How to get very continuous random numbers Pin
Judah Gabriel Himango2-Jul-06 11:35
sponsorJudah Gabriel Himango2-Jul-06 11:35 
GeneralRe: How to get very continuous random numbers Pin
sergestusxx2-Jul-06 11:45
sergestusxx2-Jul-06 11:45 
GeneralRe: How to get very continuous random numbers Pin
Paul Conrad2-Jul-06 15:22
professionalPaul Conrad2-Jul-06 15:22 
sergestusxx wrote:
Is there any way to randomize it more?


What do you mean by randomizing it more? I've tested the random class and it seems to be quite random. You can specify a seed value in the class constructor.

Back in the old days with QuickBasic, one could use the statement RANDOMIZE TIMER and this would set the seed to whatever the PC's internal timer clock was at.

Try something like this:

Random randNum = new Random(DateTime.Now.Millisecond);

Everytime you have a new instance of randNum, it should generate a different set of random numbers (unless the code happens to be initiating at the same exact millisecond 1/1000 chance Smile | :) ).

Hope this helps some,

PJC
GeneralRe: How to get very continuous random numbers Pin
BoneSoft2-Jul-06 16:39
BoneSoft2-Jul-06 16:39 
GeneralRe: How to get very continuous random numbers Pin
Paul Conrad2-Jul-06 17:19
professionalPaul Conrad2-Jul-06 17:19 
GeneralRe: How to get very continuous random numbers Pin
Judah Gabriel Himango3-Jul-06 5:27
sponsorJudah Gabriel Himango3-Jul-06 5:27 
AnswerRe: How to get very continuous random numbers Pin
Guffa2-Jul-06 11:48
Guffa2-Jul-06 11:48 
AnswerRe: How to get very continuous random numbers Pin
mav.northwind2-Jul-06 23:30
mav.northwind2-Jul-06 23:30 
QuestionMessage Removed Pin
2-Jul-06 4:35
Mandai2-Jul-06 4:35 
AnswerRe: Asking a question Pin
Ravi Bhavnani2-Jul-06 4:55
professionalRavi Bhavnani2-Jul-06 4:55 
QuestionArrays in Hashtables Pin
Mazze.ger1-Jul-06 23:17
Mazze.ger1-Jul-06 23:17 
AnswerRe: Arrays in Hashtables Pin
Guffa1-Jul-06 23:51
Guffa1-Jul-06 23:51 
GeneralRe: Arrays in Hashtables Pin
Mazze.ger2-Jul-06 1:34
Mazze.ger2-Jul-06 1:34 
AnswerRe: Arrays in Hashtables Pin
Guffa2-Jul-06 1:49
Guffa2-Jul-06 1:49 
AnswerRe: Arrays in Hashtables Pin
Nader Elshehabi2-Jul-06 1:56
Nader Elshehabi2-Jul-06 1:56 
GeneralRe: Arrays in Hashtables Pin
Mazze.ger2-Jul-06 2:17
Mazze.ger2-Jul-06 2:17 
Questionhow ot Windows Service Pin
foysal mamun1-Jul-06 21:35
foysal mamun1-Jul-06 21:35 
AnswerRe: how ot Windows Service Pin
Nader Elshehabi2-Jul-06 1:43
Nader Elshehabi2-Jul-06 1:43 
AnswerRe: how ot Windows Service Pin
Ravi Bhavnani2-Jul-06 4:57
professionalRavi Bhavnani2-Jul-06 4:57 
AnswerRe: how ot Windows Service Pin
Paul Conrad2-Jul-06 12:52
professionalPaul Conrad2-Jul-06 12:52 

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.