Please note: This wiki is currently running in test mode after an attack on January 5 2013. All passwords were reset, so you will have to use the password recovery function to get a new password. To edit wiki pages, please log in first. See the wiki attack description page for more details. If you find problems, please report them to the pydotorg-www mailing list.

# -*- coding: cp1254 -*-
#random number generation
import random
f=open("ran.dat","wr")
n=int(raw_input("kaç tane rasgele sayı istersiniz\n"))
for i in range(n):
    x=random.random()
    y=str(x)
    z=str(i)
    print x
    f.write(y),f.write("\n")
    if i == n-1 :
        print x
        f.close()
import Numeric
import Gnuplot,Gnuplot.funcutils
g=Gnuplot.Gnuplot(debug=1)
g('set grid')
g.plot("'ran.dat' with linespoints")
g('set terminal png')
g('set output "random.png"')
g.plot("'ran.dat' with linespoints")

erhansenlik (last edited 2009-11-17 09:09:13 by vpn-8061f528)