How are the positions of the tiles determined?

How is the lane/position of each falling tile determined? Is it random or is there a pattern?

I am referring to the mobile game Piano Tiles - Dont Tap The White Tile ( iOS | Android ).


Solution 1:

After looking at the code of the game, yes, it does use a random algorithm.