, . ( ) , , .
- [0, 1), . ( 0 1 ). , , 1. , , 3 , : {0.38, 0.05, 0.96}. 0 1, :
{0, 0.05, 0.38, 0.96, 1}
:
{0.05, 0.33, 0.58, 0.04}
, 1. , , , 1, , ( , ). , . , .
Now, as I said, this approach will give you a different distribution of random numbers than the division method by sum, so do not consider them the same!
source
share