Link to home
Start Free TrialLog in
Avatar of Sideas
Sideas

asked on

increment through an array from a random index with setInterval()

Hello can anyone help, I'm trying to cycle through an array sequentially, but from a random index.

ie. if index 8 is picked by random then it would go 9, 10, 11 etc..

Ideally I need a setInterval between moving to the next index!

Cheers, P
ASKER CERTIFIED SOLUTION
Avatar of SamuelRostol
SamuelRostol
Flag of Norway image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sideas
Sideas

ASKER

That's a great solution - you are the man!