MCPcopy Create free account
hub / github.com/chrxh/alien / getRandomInt

Method getRandomInt

source/Base/NumberGenerator.cpp:20–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20uint32_t NumberGenerator::getRandomInt()
21{
22 return getNumberFromArray();
23}
24
25uint32_t NumberGenerator::getRandomInt(uint32_t range)
26{

Callers 10

createRandomGenomeMethod · 0.80
createRectMethod · 0.80
createHexMethod · 0.80
randomizeCellColorsMethod · 0.80
randomizeGenomeColorsMethod · 0.80
randomizeMutationIdsMethod · 0.80
getNewCreatureIdFunction · 0.80
createCellMethod · 0.80
NeuronSelectionMethod · 0.80

Calls

no outgoing calls

Tested by 1

createRandomGenomeMethod · 0.64