davidbau / seedrandom

seeded random number generator for Javascript
2.04k stars 160 forks source link

Custom integral number type support #35

Closed kripod closed 8 years ago

kripod commented 8 years ago

Add the following methods to seedrandom:

davidbau commented 8 years ago

(Same comment)

We probably supply too many forms already, which might be justified because some of the forms are faster than others and so provide more "native" access to the underlying PRNG.

However, in the spirit of keeping this library as small as possible, 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. But that's not the purpose of this small library.

We just provide raw access to a PRNG source and leave it to other libraries to supply more specific distributions.