Get a random int from to (inclusive) @param f the from @param t the to @return the value
(int f, int t)
| 181 | * @return the value |
| 182 | */ |
| 183 | public static int irand(int f, int t) { |
| 184 | return f + (int) (Math.random() * ((t - f) + 1)); |
| 185 | } |
| 186 | |
| 187 | /** |
| 188 | * Get a random float from to (inclusive) |