Custom distribution of random numbers