📜  math.random 替代加密 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:09.447000             🧑  作者: Mango

代码示例1
// Added in Node v14.10
import { randomInt } from 'crypto'

// Generate random number less than 500
randomInt(500)   //45