Welcome, Guest

Author Topic: hurricane generator  (Read 1497 times)

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
hurricane generator
« on: December 15, 2012, 06:45:23 AM »
unfinished but it works

Code: [Select]
import os
import random
unit = input('units of time')
for x in range(50):
    start = random.uniform(0,unit)
    end = random.uniform(start,start + unit/5)
    time = end-start
    wind = 150*random.betavariate(2,5)*5*(time/unit)
    print 'hurricane',str(x+1)
    print 'start date: ',str(start)
    print 'end date  : ',str(end)
    print 'duration  : ',str(time)
    print 'wind speed: ',str(wind)
    print ' '
os.system('pause') 

tuto99

  • *****
  • Posts: 533
  • Baba Booey
Re: hurricane generator
« Reply #1 on: December 15, 2012, 09:25:45 AM »
How do I run the program?
(I'm a newbie at Python,  :P)

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: hurricane generator
« Reply #2 on: December 15, 2012, 11:00:20 AM »
well if you have python installed
just click or double click on it!