combomash / engine

TypeScript Generative Media Engine
https://www.npmjs.com/package/@combomash/engine
ISC License
0 stars 0 forks source link

probability #2

Open owmo-dev opened 2 weeks ago

owmo-dev commented 2 weeks ago

Add a PRNG and helpful functions that derive meaningful values from it. Also include any of your useful helper functions, such as the "map" function for re-mapping values.

owmo-dev commented 1 week ago

Random class and PRNGs implemented, I'll focus this issue on implementing a game-like Probability class that uses a Random instance.

This might be a good place to start:

https://www.redblobgames.com/articles/probability/damage-rolls.html