Added tutorial references.

This commit is contained in:
Erik C. Thauvin 2014-05-09 11:52:26 -07:00
parent d0f8354b57
commit 3af7ffc5ef

View file

@ -8,6 +8,7 @@
# May 9, 2014 # May 9, 2014
# Import the randrange function # Import the randrange function
# See: http://www.tutorialspoint.com/python/number_randrange.htm
from random import randrange from random import randrange
# The maximum number of random numbers to generate # The maximum number of random numbers to generate
@ -31,6 +32,7 @@ while len(randomNumbers) < max:
# Append the random number to our list # Append the random number to our list
randomNumbers.append(randint) randomNumbers.append(randint)
# Print the random number, converted to a string and right justified # Print the random number, converted to a string and right justified
# See: http://www.tutorialspoint.com/python/string_rjust.htm
# The comma at the end prevents a new line from being printed # The comma at the end prevents a new line from being printed
print ' ' + str(randint).rjust(2), print ' ' + str(randint).rjust(2),
# Increment the print counter, same as: printCounter = printerCounter + 1 # Increment the print counter, same as: printCounter = printerCounter + 1