[IronPython] Random Number Generation

Adam Brand adamb at silverkeytech.com
Thu Jun 25 02:21:57 CEST 2009

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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20090624/a70d431d/attachment.html>

More information about the Ironpython-users mailing list