Fixed random number generator to generate the correct number of digits + decimal generator.

I was getting more digits than the number I put into digits. Also I needed a decimal generator so I tossed one in. Figured some other people could use it as well.