A conditional random number generation problem (please help me!)
- From: "rjmachado3" <rjmachado3@xxxxxxxxxxxxxxx>
- Date: 11 Apr 2006 04:45:50 -0700
I need to know the formula for the random function that return random
numbers in a range of a and b integers [a,b] but that obey on a custom
probability (possibly different!) for each integer number on this [a,b]
range (of course the sum of all integer number probabilities are = 1!).
Finally, what i want is the general function formula that simulate the
random behavior (based on a custom probability value for each integer
number between the [a,b] range. confuse? i hope not! please help me!!!!
what i know so far is that the function formula for generating a "pure"
random number between [a,b] range is:
rand()*(b-a)+a
where rand() return a random number between 0 and 1.
.
- Follow-Ups:
- Prev by Date: Re: Calculus XOR Probability
- Next by Date: Re: Logarithm of transfinite numbers
- Previous by thread: Measure and Compactness
- Next by thread: Re: A conditional random number generation problem (please help me!)
- Index(es):
Relevant Pages
|