RE: [AD] Pending patches request

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


>I have a couple of patches waiting to be applied on my local copy:
>
>- rand() replaced by (rand()+(rand()>>16)) on test.c
>  This should cause no harm to anyone.

Wouldn't adding two random numbers where the randomness is evenly
distributed accross the range of possible values create a result where
there's a greater probability that the number falls in the middle of the
range than it does of falling somewhere near the edge?

AE.





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/