getting random number in java
Hi everyone, i am trying to get a random number in a particular range. for example random numbers between 1 to 100 in Java. Though i m new to Java, i have tried many examples on available on net. i already imported the java.util.random class in my Java application but nothing seems to work.
In order to get the random numbers in java i am following the given steps...
also created the random number genrator and translating and scaling the random number in my Java Random number eample. but for some reason i am unable to generate it.
Can anyone please tell me what i am missing or post the example here with some explanation. Also explain different types to generate the random number in Java Thanks in Advance!