Reduce code, when looping functions

Using Any Component

Shuffle procedure is from here