rand int example code written