[IronPython] How to convert between C# and IronPython

Andrew Evans evans.d.andrew at gmail.com
Thu Aug 5 01:02:55 CEST 2010


Hello

I am trying to follow a tutorial written for silverlight and C# and convert
the code to Iron Python. However I am unsure about how to use this code as
IronPython

        Byte[] rndBytes = new Byte[10];
        RNGCryptoServiceProvider rndC = new RNGCryptoServiceProvider();
        rndC.GetBytes(rndBytes);
        int seed = BitConverter.ToInt32(rndBytes, 0);
        Random rand = new Random(seed);
        return rand.Next(min, max);

what modules do I need. How do I use Byte in IronPython etc

Any ideas advice *cheers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100804/c0dcab75/attachment.html>


More information about the Ironpython-users mailing list