sirisian / ecmascript-types

ECMAScript Optional Static Typing Proposal http://sirisian.github.io/ecmascript-types/
453 stars 4 forks source link

Create a typed Math.random library using generics #74

Open sirisian opened 2 years ago

sirisian commented 2 years ago

WIP issue.

TODO: Include references to the various random number and seeded random proposals.

Stuff like:

Math.random<int32>(0, 100);

TODO: seeded random examples and unseeded ones

TODO: different standard RNG functions for speed and cryptographic ones. Native implementations preferred and custom implementations.

TODO: Ability to create array of typed RNG values

TODO: Ability to fill array with RNG values quickly

TODO: WebWorkers explanations

sirisian commented 2 years ago

https://github.com/sirisian/ecmascript-types/blob/master/random.md