Add simple_rand() function to generate simple random numver