Write a function called randlist()
that will create and return a list of 10 random integers from 1-100.
Then, in main()
, call it a few times to test it.
Examples:
randlist()
might return the list [34, 58, 97, 84, 32, 57, 98, 73, 45, 89]
For +10 bonus points, make the length of the list random, too. The length should be randomly chosen between 10-20.
©2017 Graham Mitchell