JavaShuffle!

Sorry, you need a browser that supports Java.

Here is a set of hands, ready to be used for your next event. The hands were generated when you started the applet, no two pages will ever be the same.

Need more hands? Simply press the "Reload" Button and another set will be generated.

To print the hand records, press the "Print" Button". Unfortunately, on some Netscape 3.x versions, this results in a blank page. Netscape has promised to fix that in the next release.

Want a different layout? Feel free to copy the page. Then edit the applet parameters and load the page into Netscape. The applet parameters are explained in the comments of the HTML code for this page, the parameters allow you to adjust the number of hands, the number of columns and the size of each hand.


About JavaShuffle

People always complain about those Computer Hands so I did a bit of testing. On a sample of 100,000 hands (approximately 15 minutes of CPU time on a Pentium-90), I found that: There are more tests that one can do and I might even do them sometime, but at a first glance, the hands seem to be consistent with the expected values for perfectly shuffled hands.

The algorithm uses a 48 bit random generator and it can generate some 2.8x1014 different hands after each download. While this isn't anywhere near the 5.3x1028 possible bridge hands, it will be a while before you see the same hands reappear.

The random seed is determined from the IP address and the time of the day. This makes it extremely unlikely that the applet is ever run with the same same seed (you'd have to run the applet on the same machine at exactly (in milliseconds) the same time) and excludes the possibility that two sets of hands will ever be the same.


© Henk Uijterwaal, January 1997.