False
The set is finite, suppose consists of n
numbers. What happens if you choose n+1
numbers? Let's also consider a basic random function as implemented in many languages which gives you a random number in [0,1)
. However, this number is limited to three digits after the decimal giving you a set of 1000 possible numbers (0.000 - 0.999
). However in most cases you will not need to use all these 1000 numbers so this amount of randomness is more than enough.
However for some uses, you will need a better random generator than this. So it all comes down to exactly how many random numbers you are going to need, and how random you need them to be.
Addition after reading original question: in the case that you have some sort of limitation (such as in the original question in which each set of selected numbers must sum up to a certain
N
) you are not really selected random numbers
per se, but rather choosing numbers in a
random order from a given set (specifically, a permutation of numbers summing up to
N
).
Addition to edit: Suppose your bad number generator generated the sequence
(1,1,1,2,2,2)
. Does the permutation
(1,2,2,1,1,2)
satisfy your definition of
random?