[Tutor] FW: (no subject)
Ashfaq
quazi.ashfaq at gmail.com
Sat Dec 1 17:46:39 CET 2012
Run your code 10,000 times. :)
** **
>
> import math****
>
> import random****
>
> random.seed()****
>
>
points = []
for i in range(0, 10000):
x=random.uniform(0,1)
y=random.uniform(0,1)
points.append ( (x, y) )
I hope it helps.
--
Sincerely,
Ashfaq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20121201/0bb1ed56/attachment-0001.html>
More information about the Tutor
mailing list