Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

gDistUnif.py

alduncin Jul 3rd, 2013 30 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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