Children in 8th were doing rational numbers and they wanted to build a project to demonstrate their learning . They have build a project in number line. This scratch program shows how to find the fraction in a number line. The numerator is ( a random number is asked from the user. The program chooses a number 0 to 3 x the user number ) and the numerator is also generated randomly (2 – 10). The user needs to find the answer for the question. The user needs to give to a value for numerator and a value for the denominator.