choose random discrete states in getstates