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 
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #generate #random #number #node #js
ADD COMMENT
Topic
Name
5+6 =