daily pastebin goal
16%
SHARE
TWEET

gDistUnif.py

alduncin Jul 3rd, 2013 30 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top