# Author: James Tam
# Version: October 24, 2013 (Student teaching version) 
# No debugging mechanism employed).
# It's a very simple technique but it can allow to determine: 1) are there any                                             
# endless loops (yes) 2) which one is endless (#1) 3) which ones never execute                                                
# (none in this example) 


import random

SIZE = 150
i = 1

while (i <= SIZE):
    grade = random.randrange(-100,200)
    while ((grade < 0) or (grade > 100)):
        grade = random.randrange(-100,200)
    id = random.randrange(0,100000000)
    while ((id <= 0) and (gpa >= 99999999)):
        id = random.randrange(0,100000000) 

print("ID #%d\t%dgrade" %(id,grade))
