>Knuth? The Arm of Computer Programming? What is this? A book series? Or is it an ebook or something.
The Art of Computer Programming

>So how do I get from SkinColor = rand()%5; to using
>(int)((double)rand() / ((double)RAND_MAX + 1) * N).
SkinColor = (int)((double)rand() / (double)RAND_MAX * 5);

-Prelude