1
$\begingroup$

I have used programming languages which generate a random number in a given range.

Let's say we have a range of 1 to 10 each number has the probability of 1/10 to get selected. What is the criteria on the basis of which a random number is selected with uniform probability by a programming language.

$\endgroup$

closed as unclear what you're asking by David Richerby, Evil, Discrete lizard, Yuval Filmus, xskxzr Feb 6 at 7:49

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 5
    $\begingroup$ I don’t understand your question. Are you asking how to convert the random bits generated by a PRNG to a uniform number from 1 to 10? $\endgroup$ – Yuval Filmus Feb 5 at 7:02
  • 1
    $\begingroup$ @Yuval_Filmus I think he is asking how to prove the uniformity of a generator. $\endgroup$ – Vince Feb 5 at 12:50