[Tutor] random number generation

Karim Yaici karimy@nipltd.com
Fri, 25 May 2001 10:11:55 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0052_01C0E503.2087B0C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Rod,
If you are interested in a better random generator, have a look at =
http://sourceforge.net/projects/pyaes/. This is a package  that contains =
a couple of encryption modules and one psudo-number generator (which =
does interest us) is called: Entropy.

There are tests which show the 'predictability' and the standard =
deviation of the numbers generated by Entropy.py and whrandom.py.

You may probably not need that much of randomness, but I was thinking =
that people in this list may be interested :-)

Karim

  ----- Original Message -----=20
  From: Rod Krause=20
  To: tutor@python.org=20
  Sent: Friday, May 25, 2001 2:16 AM
  Subject: [Tutor] random number generation


  I am wondering what the syntax is for generating random numbers in =
python - I am developing a set of numeracy programs for high school kids =
and need to be able to generate questions that are different each time


  Rod Krause

------=_NextPart_000_0052_01C0E503.2087B0C0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Rod,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If you are interested in a better =
random generator,=20
have a look&nbsp;at <A=20
href=3D"http://sourceforge.net/projects/pyaes/">http://sourceforge.net/pr=
ojects/pyaes/</A>.=20
This is a package&nbsp; that contains a couple of encryption =
modules&nbsp;and=20
one psudo-number generator (which does interest us) is called:=20
Entropy.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>There are tests which show the =
'predictability' and=20
the standard deviation of the numbers generated by Entropy.py and=20
whrandom.py.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>You may probably not need that much of =
randomness,=20
but I was thinking that people in this list may be interested =
:-)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Karim</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Droderick.krause@dubbocs.com.au=20
  href=3D"mailto:roderick.krause@dubbocs.com.au">Rod Krause</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A title=3Dtutor@python.org =

  href=3D"mailto:tutor@python.org">tutor@python.org</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Friday, May 25, 2001 2:16 =
AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Tutor] random number=20
  generation</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>I am wondering what the syntax is for =
generating=20
  random numbers in python - I am developing a set of numeracy programs =
for high=20
  school kids and need to be able to generate questions that are =
different each=20
  time</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Rod =
Krause</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0052_01C0E503.2087B0C0--