* Draw a random number (internal function). * @todo Use Wolfram's fast cellular automata pseudo random number generator. * @return Unsigned 16 bit random number. */
| 86 | * @return Unsigned 16 bit random number. |
| 87 | */ |
| 88 | int Micropolis::simRandom() |
| 89 | { |
| 90 | nextRandom = nextRandom * 1103515245 + 12345; |
| 91 | return (nextRandom & 0xffff00) >> 8; |
| 92 | } |
| 93 | |
| 94 | |
| 95 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected