Add get random block function

Function selects random number
Case statement returns an object associated with number