Make an array with about 20 elements with different numbers and loop through the array to get your time outs.
This will be "random" enough for the party fun, by time anyone could figure out the sequence the game will be done.
like this:
const randomdata as byte [20] = (25,12,34,52,16,10,12,46,12,52,12,44,57,12,23,64,21,23,12)
dim delaytime as longword
main:
for i = 0 to 20
'delay i seconds
delaytime = randomdata
delaytime = delaytime * 1000
Delay_ms(delaytime)
'go beep
next i
goto main
end
I tried to make sure the code is close to right for Mikroe basic, you get to do the rest.
If the whole array is too short or too long of a delay, just scale it by changing the multiply by 1000, then you do not have to change all the numbers, or better yet add a pot and have it adjustable during the party.
Hope you have a fun party.