A friend of mine has written a Warlords battle odds calculator in Matlab that I would like to replicate in Python 3. I'm not very experienced in Python and don't know Matlab at all, but I can sort of see what's happening in the Matlab code. This one line has me a bit confused though.
r1 = ceil((rand*10));
Is this asking for the ceiling of a random floating point number from 0-1, then multiplying by 10?