3 ms·
> Instead, I started using a random shuffle to guarantee events aren't repeated before all other events have happened, but it still feels random. Another optio
by dspillett 10y ago
> Instead, I started using a random shuffle to guarantee events aren't repeated before all other events have happened, but it still feels random.
Another option for a similar effect is to keep a counter and compare it to sequences of prime numbers: when the count is a multiple of 23 then X happens, if the count is a multiple of 7 and 11 then Y happens, and so forth.
Balanced with enough thought this will ensure that enough happens without it seeming too regular to the player.