This (from the OP):
So, supplied with a command line argument, D, indicating the number of (numeric) digits, code a routine that picks (fairly) a random code, C, in the range 0 .. 1eD -1,
Means that if the command line argument (D) is 4, then the range is 0 .. 1e4-1. Ie 0 .. 9999
For D = 10, then the range is 0 .. 1e10 -1. Ie. 0 .. 9999999999
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [d/l] [select] |
Thanks. In the op you have d not D, so it confused.
| [reply] |
| [reply] |