Main
Vectors
Matrix
Matrix Manipulation
Transformation Matrices
Angles
Random
Bezier Curve
Equations
Path Movement
Color
Linear Interpolation
Derivatives
Collision Detection
Animation
Circle And Ellipse
Sequence
Combinatorics
Other

Get random integer

This function returns a random integer number in the range [min, max].

import { getRandomInt } from 'mz-math';

const res = getRandomInt(0, 100); // 63