Users Pricing

forum

home / developersection / forums / getting random numbers in java

Getting random numbers in java

Anonymous User 2114 07 May 2013
Hello Guys,

I would like to get a random value between 1 to 50.

How may I do that with the help of Math.random(); in Java?

Is there any way to bound the values that will be accepted?

Thank you

I am a content writter !


1 Answers