Groovy web console

subscribe to the feed Subscribe
to this
site
Random 4 digit OTP (via #groovywebconsole)
tweet this snippet Tweet
this
script

Random 4 digit OTP

Published 2 months ago by Mak with tags otp random
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
Random rand=new Random()
String randomOTP=rand.nextInt(8999)+1000
println randomOTP