Files
cpython/Lib
Raymond Hettinger 63b5156e6e 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.
2003-01-04 09:30:32 +00:00
..
2002-11-26 09:42:57 +00:00
2002-05-29 01:17:47 +00:00
2002-10-07 01:18:17 +00:00
2002-08-12 20:21:43 +00:00
2002-10-30 06:33:33 +00:00
2002-10-07 01:18:17 +00:00
2002-08-23 16:09:52 +00:00
2002-10-07 01:18:17 +00:00
2002-03-25 13:22:14 +00:00
2002-10-06 04:34:44 +00:00
2002-09-07 04:49:09 +00:00
2002-09-24 11:19:33 +00:00
2002-10-06 22:11:13 +00:00
2002-08-23 16:34:08 +00:00
2002-09-30 10:54:15 +00:00
2002-11-07 00:28:54 +00:00
2002-04-19 03:54:37 +00:00
2002-09-24 09:59:50 +00:00
2002-10-06 03:52:44 +00:00
2002-10-07 01:18:17 +00:00
2002-04-18 05:13:41 +00:00
2002-10-07 01:18:17 +00:00
2002-10-07 01:18:17 +00:00
2002-10-07 01:18:17 +00:00
2002-10-06 03:24:29 +00:00
2002-10-16 21:24:52 +00:00
2002-10-06 03:13:29 +00:00
2002-04-22 11:57:06 +00:00
2002-10-06 03:18:34 +00:00
2002-08-23 16:29:01 +00:00
2002-10-11 22:06:12 +00:00