Christoph Diehl
|
6654cf857e
|
Add overall code reformatting
|
2017-04-22 23:07:29 +03:00 |
|
Christoph Diehl
|
93d5fec51a
|
Add docstr to random.init
|
2017-04-22 22:42:54 +03:00 |
|
Jesse Schwartzentruber
|
227f6a1958
|
Performance improvement of random.pop()
This does not do the same array type checks as random.item(), but these
should be standardized throughout the module.
|
2017-04-20 15:15:13 -04:00 |
|
Jesse Schwartzentruber
|
8e084eb878
|
Fix typo in random.subset: limit should only be randomized if it is not specified
|
2017-04-20 15:14:33 -04:00 |
|
Jesse Schwartzentruber
|
61b01e0c40
|
Generate 53-bit floats instead of 32.
|
2017-04-20 15:12:31 -04:00 |
|
Jesse Schwartzentruber
|
8b20380b28
|
Add more random tests.
Use chi-squared goodness of fit tests for random distributions.
|
2017-04-12 17:03:57 -04:00 |
|
Christoph Diehl
|
146009da0e
|
Edit Random.pop()
|
2017-04-12 18:24:44 +03:00 |
|
pyoor
|
05ad767b05
|
Added Random.pop()
|
2017-04-12 10:40:50 -04:00 |
|
Jesse Schwartzentruber
|
5dbe5b7fa6
|
More random.js tests and fix an issue in random.float()
|
2017-04-11 17:43:09 -04:00 |
|
Jesse Schwartzentruber
|
b3c7ecbe2f
|
Switch from qunit (node) and slimerjs to karma which supports running
qunit tests in firefox and chrome.
Maintaining code to work in node for testing only will be error-prone.
|
2017-04-10 13:49:32 -04:00 |
|
Jesse Schwartzentruber
|
91f0cbf6c4
|
Fix some uses of random.index instead of random.item
|
2017-04-10 13:37:32 -04:00 |
|
Jesse Schwartzentruber
|
bdeabbbbd4
|
Change a bunch of uses of var to let
|
2017-04-10 13:36:38 -04:00 |
|
Christoph Diehl
|
671a9a9fe4
|
Rename random.some to random.subset
|
2017-04-07 16:59:43 +02:00 |
|
Christoph Diehl
|
ba5f56cd0b
|
Rename random.index to random.item
|
2017-04-07 16:59:10 +02:00 |
|
Jesse Schwartzentruber
|
a01cd4191f
|
Initial unit test skeleton.
|
2017-04-07 12:56:18 +02:00 |
|
Christoph Diehl
|
c42604e984
|
Make Random object lowercase
|
2017-04-07 10:10:59 +02:00 |
|
Christoph Diehl
|
7b5855e18f
|
Add random utility class
|
2017-04-06 18:12:24 +02:00 |
|
Christoph Diehl
|
c7460c2780
|
Cleanup MersenneTwister
|
2017-04-06 16:32:07 +02:00 |
|
Christoph Diehl
|
ed2884cc38
|
Cleanup MersenneTwister
|
2017-04-06 16:18:36 +02:00 |
|
Christoph Diehl
|
7c7ebd7e40
|
Cleanup MersenneTwister
|
2017-04-06 15:49:58 +02:00 |
|
Gary Kwong
|
eb83c5250e
|
Add jruderman's version of Mersenne Twister from funfuzz rev 2ab19c2b.
|
2017-04-06 12:22:57 +02:00 |
|