Commit graph

17 commits

Author SHA1 Message Date
Christoph Diehl
fa1a194b71 [console.js] Add logging method from common.js 2017-04-23 00:14:04 +03:00
Christoph Diehl
392642751f [random.js] remove redundancy 2017-04-23 00:02:26 +03:00
Christoph Diehl
22085d0531 Add license headers 2017-04-22 23:16:47 +03:00
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
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
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
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