1.0.0 • Published 12 months ago

random-crack v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

Introduction

A NodeJS library to appoximate the next generated Math.random() 50% chances value, won't 100% accurate though. Reminder that this only approximates if its above 0.5 or below 0.5, great for 50% games.

Documentation

.resolve(num: Array[]) To use this function, generate 15 (minimum) Math.random() values using Array.from(Array(15), Math.random)) in terminal/browser console. (can be anything but do not close the session). After that copy the array the code outputs and put it into the num argument.

To use

If you are still in the same session, try doing Math.random() again and the output should be approximately as the resolve() function value (based on the 50% chances) Consider giving me a feedback to improve this!

1.0.0

12 months ago