const randomiser = (array: any[], current: number): number => (current + 1 + (Math.random() * (array.length - 1) | 0)) % array.length; // Example with array.length = 8, current = 7: // 1. (7 + 1) = 8 // Shift start point after current // 2. random * 7 | 0 // Get random 0-6 // 3. (8 + random) % 8 // Wrap around length, never hits 7