Fixed Random R and Q casting