(double max)
| 19 | |
| 20 | // pseudo-random number generator |
| 21 | public static final double random(double max) { |
| 22 | last = (last * IA + IC) % IM; |
| 23 | return max * last / IM; |
| 24 | } |
| 25 | |
| 26 | // Weighted selection from alphabet |
| 27 | public static String ALU = |
no outgoing calls