2 ms·
This is partly the fault of Flash itself. It doesn't provide control over seeding the API's PRNG. A diligent coder can of course implement their own PRNG metho
by chipsy 17y ago
This is partly the fault of Flash itself. It doesn't provide control over seeding the API's PRNG.
A diligent coder can of course implement their own PRNG method, but that is not an excuse for providing a half-broken feature.
- tesseract 17y agoThe regular random number generator in Flash is automatically seeded and you can't specify a seed. This article, though, talks about using BitmapData.noise() which takes a seed as a parameter, and normally when I see people discussing the use of that API for general purpose random number generation it is precisely because it allows control over seeding.
- antirez 17y agorc4 is a prefect algorithm to build a fast and very high quality PRNG for instance.