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:31
static int randomNumberBetween(int lowest, int highest)
CustomControlsView.cpp:166CustomControlsView::handleTickEvent()CustomControlsView
int newValue = value + Utils::randomNumberBetween(-6, 18);
CustomControlsView.cpp:191CustomControlsView::startThreeWayProgressBarAnimation()CustomControlsView
animationDuration[i] = Utils::randomNumberBetween(100, 200);
CustomControlsView.cpp:219CustomControlsView::getRandomEasingEquation()CustomControlsView
switch (Utils::randomNumberBetween(0, 6))
CustomControlsView.cpp:350CustomControlsView::screenSaverMinorTick()CustomControlsView
if (Utils::randomNumberBetween(0, 100) < 50)
GraphView.cpp:281GraphView::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:282GraphView::handleTickEvent()GraphView
secondaryGraph.addValue(graphX, (int)((CWRUtil::toQ5(150) * CWRUtil::sine(graphX + 230)).to<int>()) + 200 + Utils::randomNumberBetween(-50, 50));
GraphView.cpp:303GraphView::handleTickEvent()GraphView
value1 = Utils::randomNumberBetween(graph1min, graph1max);
GraphView.cpp:304GraphView::handleTickEvent()GraphView
value2 = Utils::randomNumberBetween(graph2min, graph2max);
GraphView.cpp:317GraphView::handleTickEvent()GraphView
value1 += Utils::randomNumberBetween(-randomMax, randomMax);
GraphView.cpp:318GraphView::handleTickEvent()GraphView
value2 += Utils::randomNumberBetween(-randomMax, randomMax);
GraphView.cpp:321GraphView::handleTickEvent()GraphView
value1 += Utils::randomNumberBetween(randomMax, 2 * randomMax);
GraphView.cpp:325GraphView::handleTickEvent()GraphView
value1 -= Utils::randomNumberBetween(randomMax, 2 * randomMax);
GraphView.cpp:329GraphView::handleTickEvent()GraphView
value2 += Utils::randomNumberBetween(randomMax, 2 * randomMax);
GraphView.cpp:333GraphView::handleTickEvent()GraphView
value2 -= Utils::randomNumberBetween(randomMax, 2 * randomMax);
GraphView.cpp:569GraphView::resetPieChart()GraphView
shares[i] = Utils::randomNumberBetween(10, 100);
GraphView.cpp:747GraphView::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