For the first line, you can translate it to:<div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><span class="Apple-style-span" style="font-size: x-small;">from System import Array, Byte</span></div>

<div><span class="Apple-style-span" style="font-size: x-small;"><br></span></div><div><span class="Apple-style-span" style="font-size: x-small;">rndBytes = Array.CreateInstance(Byte, 10)</span></div></blockquote><div><br>

</div><div><br><div class="gmail_quote">On Wed, Aug 4, 2010 at 6:02 PM, Andrew Evans <span dir="ltr">&lt;<a href="mailto:evans.d.andrew@gmail.com">evans.d.andrew@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello<br><br>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<br><br><pre>        Byte[] rndBytes = <span>new</span> Byte[10];<br>


        RNGCryptoServiceProvider rndC = <span>new</span> RNGCryptoServiceProvider();<br>        rndC.GetBytes(rndBytes);<br>        <span>int</span> seed = BitConverter.ToInt32(rndBytes, 0);<br>        Random rand = <span>new</span> Random(seed);<br>


        <span>return</span> rand.Next(min, max);<br></pre>what modules do I need. How do I use Byte in IronPython etc<br><br>Any ideas advice *cheers<br><br><br>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br></blockquote></div><br></div>