While loops, rand, and ifs