rational and irrational number simulation