mirror of
https://github.com/zrwusa/data-structure-typed.git
synced 2024-11-10 08:04:05 +00:00
6 lines
208 B
TypeScript
6 lines
208 B
TypeScript
|
import {randomInt} from './number';
|
||
|
|
||
|
export const randomIntArray = (length: number, min: number = -1000, max: number = 1000) => {
|
||
|
return new Array<number>(length).fill(0).map(() => randomInt(min, max));
|
||
|
};
|