MCPcopy Create free account
hub / github.com/SimHacker/micropolis / getRandom16

Method getRandom16

MicropolisCore/src/MicropolisEngine/src/random.cpp:120–123  ·  view source on GitHub ↗

* Get random 16 bit number. * @return Unsigned 16 bit random number. */

Source from the content-addressed store, hash-verified

118 * @return Unsigned 16 bit random number.
119 */
120int Micropolis::getRandom16()
121{
122 return simRandom() & 0x0000ffff;
123}
124
125
126/** Get signed 16 bit random number. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected