percentTrue. If percent is like 30, then 30% of the time it will be true. @param percent an int. @return a boolean.
(final int percent)
| 43 | * @return a boolean. |
| 44 | */ |
| 45 | public static boolean percentTrue(final int percent) { |
| 46 | return percent > MyRandom.getRandom().nextInt(100); |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Gets the random. |
no test coverage detected