forum

Home / DeveloperSection / Forums / Getting random numbers in java

Getting random numbers in java

Anonymous User184107-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

Updated on 07-May-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By