uniqueNumber
Generates a unique number of a stated length.
Usage
ts
import { uniqueNumber } from '@screaming/utils'
uniqueNumber(4)
// 4-digit number
uniqueNumber(4)
// different 4-digit number
1
2
3
4
5
6
7
2
3
4
5
6
7
Type Definitions
ts
/**
* @param length - The unique number's length.
* @returns The generated unique number.
*/
export declare function uniqueNumber(length: number): number
1
2
3
4
5
2
3
4
5