summaryrefslogtreecommitdiffstats
path: root/Mac/OSX/PythonLauncher/doscript.m
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-01-04 09:26:32 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-01-04 09:26:32 (GMT)
commit73ced7ee995180c0bd8d96ff7d7fb614a744ad7d (patch)
tree6f947e5610c1d232c7b2b1267b8ca919331ca01e /Mac/OSX/PythonLauncher/doscript.m
parent3a57d9de076d255f5cf46816c07e79a8c9b76ec4 (diff)
downloadcpython-73ced7ee995180c0bd8d96ff7d7fb614a744ad7d.zip
cpython-73ced7ee995180c0bd8d96ff7d7fb614a744ad7d.tar.gz
cpython-73ced7ee995180c0bd8d96ff7d7fb614a744ad7d.tar.bz2
Correct long standing bugs in the methods for random distributions.
The range of u=random() is [0,1), so log(u) and 1/x can fail. Fix by setting u=1-random() or by reselecting for a usable value. Will backport.
Diffstat (limited to 'Mac/OSX/PythonLauncher/doscript.m')
0 files changed, 0 insertions, 0 deletions