[Mono-list] random numbers

aaron.lists@aaronbock.net aaron.lists@aaronbock.net
Tue, 1 Mar 2005 23:54:31 -0500 (EST)


Did you see System.Random?

Random rng = new Random();
int num = rng.Next();

I think that'll work. Look at the methods for that class to see other
random types that you can get.

--Aaron

>
> Browsing through the mono documentation, I did not stumble
> upon a random number generator.  Is there a good random
> number generator available in the mon-1.1.4 distribution?
>
> --
> Thomas E. Vaughan <tevaughan@comcast.net>
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>