const arr = Array.from({length: 5}, v => Math.floor(Math.random() * 100)); console.log(arr) // Array with random numbers of length 5