Closed kripod closed 8 years ago
In the spirit of keeping this library as small as possible, I think we should consider convenience functions "out of scope" - there are a large number of convenience functions that should be supplied by a full random number library: uniform, normal, exponential, integer ranges, shuffles, etc. We just provide raw access to a PRNG source and leave it to other libraries to supply more specific distributions.
seedrandom('seed').int32(0, 5)
should return a value between 0 (inclusive) and 5 (exclusive): 0, 1, 2, 3, 4. I have already implemented the functionality myself, but feel that this should be a built-in method.