How to set the lower limit for this
<%= (int) (Math.random() * 60) %>
Now it give number from 0 to 60 if i want number in between 50 to 60 so how to set it. Thanks
<%= (int) (Math.random() * 10 + 50) %>
That is,
<%= (int) (Math.random() * (Max-Min) + Min) %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With