OCR GCSE (9-1) Computer Science J277 -Guide to …

J277 Guide to programming techniques: Python. Introduction. ... Import random imports the set of functions to use the random number generator. random.randint(1,6) creates a random number between 1 and 6 inclusive. ... Note I have used an absolute path, you can use a relative path if the file is in the cwd (open("NEA.txt")). ................
................