How to generate a random number of a specific range in Java?

I'm new to java and need to know how to generate a random number in a given range in Java. Ex. I need to generate a random number between 210 and 350. Thanks in advance.

Comments

  • http://stackoverflow.com/questions/6029495/how-can-i-generate-random-number-in-specific-range-in-android

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion