The idea was it got me a number between 1 and 20.999, of which I took the integer with the int(). That integer was then divided by 20. I don't know much at all about Lite-C, but I've seen it's got different types of variables, like long, short and int - would these do that calculation properly?

As for 0.05 + random(1-0.05); that would give me any number between 0.05 and 1 right? I was looking to get a multiple of 0.05 between 0.05 and 1.