While loops with rand & if