# name of probability + (pseudo)random functions

What is a group/family of functions that is random but some number(s) are more likely to come?
For example, calling each of this fake functions 10 times give:

• random2: 2,3,2,4,2,6,7,2,2,2
• random4: 4,1,2,3,4,4,2,1,4,9

As you can see, `random2` gives more number 2, `random4` gives more number 4.
Both functions have some patterns (not 100% random).

• A "100% random" number generator will have some patterns in it, because a complete lack of "patterns" is itself a predictable pattern. – Ixrec Jun 11 '16 at 9:03
• What is the probability distribution of these RNGs? I would usually expect a RNG to create uniformly distributed numbers, though I've also had cases where I needed numbers with a Gaussian distribution. Given an expected distribution, we can use the Chi-Square Test to check whether the actual distribution is OK. In your example, the sample size is to small, but if `random2` produces a lot more 2s than any other number, it would be unsuitable as an uniformly distributed RNG: We could also call it flawed, broken, or dangerous. – amon Jun 11 '16 at 9:27