Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Golf: Movie style code cracker.

by Anonymous Monk
on Sep 13, 2008 at 10:29 UTC ( #711080=note: print w/replies, xml ) Need Help??


in reply to Golf: Movie style code cracker.

What is the range (0 .. ???-1) ?

Replies are listed 'Best First'.
Re^2: Golf: Movie style code cracker.
by BrowserUk (Pope) on Sep 13, 2008 at 10:43 UTC

    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.
      Thanks. In the op you have d not D, so it confused.
        In the op you have d not D,

        Indeed I did, sorry. Now corrected.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://711080]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2020-10-29 17:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (274 votes). Check out past polls.

    Notices?