Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Latest commit

 

History

History
27 lines (18 loc) · 455 Bytes

number_random.md

File metadata and controls

27 lines (18 loc) · 455 Bytes

numbers/numberRandom

Returns a random whole number between a minimum and maximum number.

function numberRandom(min: number, max: number): number

Args

min:number
The minimum number.

max:number
The maximum number.

Returns

A whole number between min and max.

Examples

import { numberRandom } from 'utils/numbers';

console.log(numberRandom(1, 10)); // Outputs a number between 1 and 10