Lyky
Well-Known Member
- Joined
- May 27, 2014
- Messages
- 291
- Solutions
- 8
- Reaction score
- 89
Hi,
I would like to request a biased random number generator, by my understanding it would have to be placed in tools.cpp (below int32_t normal_random)
Where as example the call would be
minNumber = 1
maxNumber = 10
result
1 = 60%
2 = 80%
3 = 45%
4 = 35%
5 = 20%
6 = 10%
7 = 1%
8 = 0.5%
9 = 0.1%
10 = 0.01%
obviously with numbers are vars, i was never good at math - and i think it would need gaussian.
(if it makes things easier maybe without gauss, and just chance going down uniformly down 1=80% -> 10=0.01% -> 100=0.0001% or so )
Thanks & Regards,
Lyky
I would like to request a biased random number generator, by my understanding it would have to be placed in tools.cpp (below int32_t normal_random)
Where as example the call would be
minNumber = 1
maxNumber = 10
result
1 = 60%
2 = 80%
3 = 45%
4 = 35%
5 = 20%
6 = 10%
7 = 1%
8 = 0.5%
9 = 0.1%
10 = 0.01%
obviously with numbers are vars, i was never good at math - and i think it would need gaussian.
(if it makes things easier maybe without gauss, and just chance going down uniformly down 1=80% -> 10=0.01% -> 100=0.0001% or so )
Thanks & Regards,
Lyky
Last edited: