Get a random float from to (inclusive) @param f the from @param t the to @return the value
(float f, float t)
| 192 | * @return the value |
| 193 | */ |
| 194 | public static float frand(float f, float t) { |
| 195 | return f + (float) (Math.random() * ((t - f) + 1)); |
| 196 | } |
| 197 | |
| 198 | /** |
| 199 | * Get a random double from to (inclusive) |