1.0.5 • Published 2 years ago

crandom v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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 // 4

Generate a random number between 0 and 100 with difficulty 5:

const num = crandom.rand(0, 100, 5);
num // 9
1.0.1

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.0

3 years ago