Fix time period generation in RandomClient