| View previous topic :: View next topic |
| Author |
Message |
Koplaf
Joined: 28 May 2006 Posts: 130
|
| Can anyone recommend a random method in java, that returns a random number between the ranges x and y? |
| |
|
|
|
|
Mupolan
Joined: 30 May 2006 Posts: 101
|
| Koplaf, Random or SecureRandom |
| |
|
|
Tilda Rickman
Joined: 01 Jul 2006 Posts: 3
|
| Koplaf, You could use java.util.Random for that, or persuade Math.random() to do it with a little maths. |
| |
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
|
| thx. |
| |
|
|
|
|