Home
last modified time | relevance | path

Searched refs:RAND_BETWEEN (Results 1 – 2 of 2) sorted by relevance

/haiku/src/add-ons/screen_savers/icons/
H A DIconDisplay.cpp24 #define RAND_BETWEEN(a, b) ((rand() % ((b) - (a) + 1) + (a))) macro
59 fDelay = RAND_BETWEEN(SHOW_TICKS_MIN, SHOW_TICKS_MAX); in Run()
100 fDelay = RAND_BETWEEN(STAY_TICKS_MIN, STAY_TICKS_MAX); in DrawOn()
111 fDelay = RAND_BETWEEN(HIDE_TICKS_MIN, HIDE_TICKS_MAX); in DrawOn()
H A DIconsSaver.cpp30 #define RAND_BETWEEN(a, b) ((rand() % ((b) - (a) + 1) + (a))) macro
160 uint16 size = RAND_BETWEEN(fMinSize, fMaxSize); in Draw()
165 iconFrame.OffsetTo(RAND_BETWEEN(0, maxX), RAND_BETWEEN(0, maxY)); in Draw()
174 int32 index = RAND_BETWEEN(0, fVectorIcons.CountItems() - 1); in Draw()