Generate Random Array
const generateRandomArray = (length: number) =>
Array.from({ length }, () => Math.floor(Math.random() * length));
const randomArray = generateRandomArray(1000);
const generateRandomArray = (length: number) =>
Array.from({ length }, () => Math.floor(Math.random() * length));
const randomArray = generateRandomArray(1000);