erhansenlik
This wiki is in the process of being archived due to lack of usage and the resources necessary to serve it — predominately to bots, crawlers, and LLM companies. Edits are discouraged.
Pages are preserved as they were at the time of archival. For current information, please visit python.org.
If a change to this archive is absolutely needed, requests can be made via the infrastructure@python.org 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")