As a side note this is one of those things that several tetris-clones deal have to deal with, long runs are probable but can frustrate a player so a lot of the times you want to to extra logic to keep it from being actually random.
A uniform "deck" a couple times larger than the number of pieces is the usual suggestion prevents large runs and makes sure that you see every piece more regularly.
Comments
As a side note this is one of those things that several tetris-clones deal have to deal with, long runs are probable but can frustrate a player so a lot of the times you want to to extra logic to keep it from being actually random.
A uniform "deck" a couple times larger than the number of pieces is the usual suggestion prevents large runs and makes sure that you see every piece more regularly.
Marginally related --
on the other hand, here's "Evil Tetris": http://qntm.org/hatetris