The second version of rand