[Mono-list] Best way to seed Random class?

Ben Motmans Ben Motmans <ben.motmans@gmail.com>
Sat, 23 Oct 2004 10:46:13 +0200


Use the current time

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


On Fri, 22 Oct 2004 19:49:46 -0700, Eric Damron <edamron@spamcop.net> wrote:
> Can anyone suggest a good way to seed the Random class with a random int?
> 
> Thanks
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>