Does anyone know of a C random function that allows for weighted variables? For example...
I would like to assign variable a random value between 1 and 5. However, I would like for this value to be certain numbers more frequently than others. So I would like to be able to use a function that...