Utils::randomNumberBetween() is only used within TouchGFX.
 
Symbols
loading...
Files
loading...

Utils::randomNumberBetween() method

Syntax

static int randomNumberBetween(int lowest,     int highest);

Arguments

lowest

highest

References

LocationReferrerScopeText
Utils.hpp:30
static int randomNumberBetween(int lowest, int highest)
CustomControlsView.cpp:170CustomControlsView::handleTickEvent()CustomControlsView
int newValue = value + Utils::randomNumberBetween(-6, 18);
CustomControlsView.cpp:195CustomControlsView::startThreeWayProgressBarAnimation()CustomControlsView
animationDuration[i] = Utils::randomNumberBetween(100, 200);
CustomControlsView.cpp:223CustomControlsView::getRandomEasingEquation()CustomControlsView
switch (Utils::randomNumberBetween(0, 6))
CustomControlsView.cpp:342CustomControlsView::screenSaverMinorTick()CustomControlsView
if (Utils::randomNumberBetween(0, 100) < 50)
Game2DView.cpp:181Game2DView::handleTickEvent()Game2DView
if (Utils::randomNumberBetween(0, 100) < 8)
Game2DView.cpp:207Game2DView::handleTickEvent()Game2DView
if (Utils::randomNumberBetween(0, 100) < 3)
GameBoard.cpp:199GameBoard::getRandomEmptyTile()GameBoard
int randomEmptyTile = Utils::randomNumberBetween(0, numberOfEmptyTiles);
GameBoard.cpp:444GameBoard::getStartTileState()GameBoard
if (Utils::randomNumberBetween(0, 100) < 75)
GraphView.cpp:222GraphView::handleTickEvent()GraphView
primaryGraph.addValue(graphX, (int)((CWRUtil::toQ5(150) * CWRUtil::sine(graphX + Utils::randomNumberBetween(-25, 25))).to<int>()) + 200 + Utils::randomNumberBetween(-50, 50));
GraphView.cpp:223GraphView::handleTickEvent()GraphView
secondaryGraph.addValue(graphX, (int)((CWRUtil::toQ5(150) * CWRUtil::sine(graphX+230)).to<int>()) + 200 + Utils::randomNumberBetween(-50, 50));
GraphView.cpp:242GraphView::handleTickEvent()GraphView
value1 = Utils::randomNumberBetween(graph1min, graph1max);
GraphView.cpp:243GraphView::handleTickEvent()GraphView
value2 = Utils::randomNumberBetween(graph2min, graph2max);
GraphView.cpp:253GraphView::handleTickEvent()GraphView
value1 += Utils::randomNumberBetween(-randomMax, randomMax);
GraphView.cpp:254GraphView::handleTickEvent()GraphView
value2 += Utils::randomNumberBetween(-randomMax, randomMax);
GraphView.cpp:255GraphView::handleTickEvent()GraphView
if (value1 < graph1min) value1 += Utils::randomNumberBetween(randomMax, 2*randomMax);
GraphView.cpp:256GraphView::handleTickEvent()GraphView
if (value1 > graph1max) value1 -= Utils::randomNumberBetween(randomMax, 2*randomMax);
GraphView.cpp:257GraphView::handleTickEvent()GraphView
if (value2 < graph2min) value2 += Utils::randomNumberBetween(randomMax, 2*randomMax);
GraphView.cpp:258GraphView::handleTickEvent()GraphView
if (value2 > graph2max) value2 -= Utils::randomNumberBetween(randomMax, 2*randomMax);
GraphView.cpp:474GraphView::resetPieChart()GraphView
shares[i] = Utils::randomNumberBetween(10, 100);
GraphView.cpp:609GraphView::screenSaverMajorTick()GraphView
if (Utils::randomNumberBetween(0, 100) < 50)

Call Tree

Data read by Utils::randomNumberBetween()
Utils::randomNumberBetween()::random
all items filtered out
Utils::randomNumberBetween()
Type of Utils::randomNumberBetween()
Utils::randomNumberBetween()
uint32_t
all items filtered out