Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

math.random alternative crypto

// Added in Node v14.10
import { randomInt } from 'crypto'

// Generate random number less than 500
randomInt(500)   //45
 
PREVIOUS NEXT
Tagged: #alternative #crypto
ADD COMMENT
Topic
Name
4+2 =