Make the time actually random
Add test to cover #random_time for many periods
Make sure a random period gets picked