from Utils.hpp:28
class Utils
{
public:
static int randomNumberBetween(int lowest, int highest)
{
#ifdef SIMULATOR
return (int)(lowest + (highest - lowest) * (rand() / (float)RAND_MAX));
#else
uint32_t random = (touchgfx::HAL::getInstance()->getCPUCycles() * HAL::getInstance()->getCPUCycles());
return lowest + (random % (highest - lowest));
#endif
}
static int reducedPerformance()
{
return false;
}
};