Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

generate random number in node js

const crypto = require('crypto');
const otp = crypto.randomInt(1000, 9999);
console.log(otp) //generate random 4 pin 
 
PREVIOUS NEXT
Tagged: #generate #random #number #node #js
ADD COMMENT
Topic
Name
9+1 =