Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: Problem running code until a user hits a key

by davies (Parson)
on Dec 31, 2007 at 12:04 UTC ( #659740=note: print w/replies, xml ) Need Help??


in reply to Re^3: Problem running code until a user hits a key
in thread Problem running code until a user hits a key

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
  • Comment on Re^4: Problem running code until a user hits a key

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://659740]
help
Chatterbox?
[stevieb]: ...you're testing is a test system itself. 10+ documented issues fixed, another half dozen found while fixing the original ones. I'm getting there...
[stevieb]: Then throw in changes to Windows that throws everything you trusted right out the window.
[shmem]: that's why it is called "Windows"
[stevieb]: shmem thanks for the 'insight' :P
[shmem]: good thing that Sun already took "OpenWindows", otherwise I'd not stop to shudder imagining an "OpenWindows" from MS
[shmem]: more garbage in, more garbage out that would be
[stevieb]: I found that win10 broke a C# library I was using for one project while enhancing tests for a Perl dist, which breaks other Perl dists, and I'm about to throw my hands up on berrybrew. win2k12 broke one thing, win10 breaks something...
[stevieb]: ...unrelated which requires replacing a lot of code and a whole lib. I'm about to go nix only ffs
[shmem]: stevieb: what you're doing sounds afwully complex. Too much for me this evening to provide brighter insight ;-)
[stevieb]: I don't even own a Windows computer. Both my girl and I have a laptop each with Linux. I'm supporting Windows in some of my projects and I can't even guage whether it's worth it or not.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2017-03-28 22:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (342 votes). Check out past polls.