Re: How to pick a random number from given set of numbers
A simple way to get a random number from a given group of numbers is to put those numbers into a list or array and then choose a random number from 0 to number of items in the list -1 which will give you a number that you can then use as an index to get the number from the list that is in that position. So in your example if the random number was 4 then it would grab the item at list index 4 which would be 25
btw what does gymnasium have to do with computers or programming?
Always use [code][/code] tags when posting code.