« Return to Thread: Random Number Generation

Random Number Generation

by adambsk :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.

I feel newbish writing this, but I’m having problems generating random numbers in IronPython.

 

I tried “import random” but that doesn’t seem to work (module not found).

 

I tried creating a System.Random but when I run

var_utmn = randgen.Next(1000000000,9999999999) I get a buffer overflow.

 

Any ideas? The random number needs to be above those two numbers indicated above.

 

Thanks,

Adam


_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

 « Return to Thread: Random Number Generation