To generate three random numbers between 1 and 6081 (inclusive), you can use the randint
function provided by the random
module. Here's an example:
main.py161 chars6 lines
Alternatively, you can also use the sample
function from the random
module to randomly select three unique numbers from a list containing all numbers between 1 and 6081. Here's an example:
main.py223 chars9 lines
Both methods above should produce an output similar to this:
main.py19 chars2 lines
gistlibby LogSnag