Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Even if the range is only 1,000 for each PRNG, things explode exponentially. What I'm actually trying to do is deal Bridge hands. There are 5.36E28 different hands that can be dealt, so even a 24 bit PRNG could cover only a tiny fraction, which may not be representative. My strategy is based loosely on the Enigma coding machine, but with a variation.

The idea is that the user will first select the sequence of PRNGs that will be used. The sequence will not be of fixed length (unlike Enigma, which had a set number of wheels) and PRNGs can be repeated within the sequence (again unlike Enigma, where a wheel could be used only once in any day's setting). Let's say that the attacker knows that a sequence of five PRNGs will be used without repeats, because he knows the Tournament Director. Even at a range of 1,000, that's 1.2E17 different series of deals that might come up. Since he won't see the first board before he starts playing, he won't have much time to work out what the other boards are likely to be. Getting access to the boards before play would be far easier, but that's beyond the scope of this lecture :-).

Thanks again for all the help,

John Davies

In reply to Re^4: Problem running code until a user hits a key by davies
in thread Problem running code until a user hits a key by davies

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found