Y8

6i: Generate and use random integers

Keywords:
Python
Test your self on these keywords and definitions using the games below or Play random game
KeywordDefinition
importinstruction which tells python how to find and use an external module of code
integera whole number
parameterdata which is passed into a subprogram to customise how it works (e.g. minimum and maximum random numbers to choose between)
randoma module which can be imported to tell python how to choose random numbers
return valuedata which is passed out from a function back to the code which called the function (e.g. a number chosen at random)
Keyword games:
Resources: