@jaewon2015/random
v1.0.0
Published
This package is a library designed to easily generate random numbers.
Readme
This package allows you to easily generate random numbers.
To install this, type npm install @jaewon2015/random.
This library is built with pure JavaScript and ESM.
Usage(CJS):
const randInt = require("@jaewon2015/random");
const randActualNumver = require("@jaewon2015/random");
const randBoolean = require("@jaewon2015/random");
console.log(randInt(1, 10)); // An integer between 1 and 10 will be printed.
console.log(randActualNumber()); // An actual number between 0 and 1 will be printed.
console.log(randomBoolean()); // True or false will be printed.Usage(ESM):
import randInt from "@jaewon2015/random";
import randActualNumver from "@jaewon2015/random";
import randBoolean from "@jaewon2015/random";
console.log(randInt(1, 10)); // An integer between 1 and 10 will be printed.
console.log(randActualNumber()); // An actual number between 0 and 1 will be printed.
console.log(randomBoolean()); // True or false will be printed.License: CC0-1.0
