daily pastebin goal
94%
SHARE
TWEET

gDistUnif.py

alduncin Jul 3rd, 2013 29 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from random import random
  2. def main():
  3.     a=int(raw_input('A_>'))
  4.     b=int(raw_input('B_>'))
  5.     R=random()
  6.     x=float(a+R*(b-a))
  7.     unif=x
  8.     print unif
  9.  
  10. main()
RAW Paste Data
Top