1.0.5 • Published 3 years ago
crandom v1.0.5
crandom
A simple random number generator based on circular equations.
Difficulty is adjustable by changing the power of the equation.
Usage
Importing
with Typescript
import crandom from 'crandom';with Vanilla Javascript
const { default: crandom } = require('crandom');Generating
Generate a random number between 1 and 5 with difficulty 3:
const num = crandom.rand(1, 5);
num // 4Generate a random number between 0 and 100 with difficulty 5:
const num = crandom.rand(0, 100, 5);
num // 9