Fix array size in RandomCycle