math.Random Alternative Crypto
// Added in Node v14.10
import { randomInt } from 'crypto'
// Generate random number less than 500
randomInt(500) //45
Frustrated Developer