<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Usage</title><link>https://sourceforge.net/p/montyhallshellscript/wiki/Usage/</link><description>Recent changes to Usage</description><atom:link href="https://sourceforge.net/p/montyhallshellscript/wiki/Usage/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 26 Oct 2014 19:55:48 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/montyhallshellscript/wiki/Usage/feed" rel="self" type="application/rss+xml"/><item><title>Usage modified by edh</title><link>https://sourceforge.net/p/montyhallshellscript/wiki/Usage/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;First, you need some random numbers!  DEFINITELY don't use a spreadsheet, they're random numbers are insufficiently random when used in bulk.  /dev/random is better but not ideal.&lt;/p&gt;
&lt;p&gt;I tend to use random.org, this gives access to hardware generated random numbers on demand through a web interface.  Best source you're going to find unless you actually have a hardware random number easily to hand...&lt;/p&gt;
&lt;p&gt;Create a file called 'random.csv'.  This file should have 3 Comma Seperated Variable columns.  The first number needs to be 1-3, the second 1-3 and the third 1-2.  Do this wrong and things won't work properly!&lt;/p&gt;
&lt;p&gt;For example:&lt;br /&gt;
2,2,2&lt;br /&gt;
3,1,1&lt;br /&gt;
1,1,2&lt;br /&gt;
1,2,1&lt;br /&gt;
2,1,1&lt;br /&gt;
1,1,1&lt;br /&gt;
2,3,1&lt;/p&gt;
&lt;p&gt;You might find a spreadsheet will help you put this together.  The number of lines can be as long as you want (and your system will allow).  10000 lines will take less than a second on a modern system.  If you want to do a billion, feel free!&lt;/p&gt;
&lt;p&gt;Next, you just need to run the program on the command line:&lt;br /&gt;
sh montyhall.sh&lt;/p&gt;
&lt;p&gt;It will run and give you the results at the end:&lt;/p&gt;
&lt;p&gt;============================================================================&lt;br /&gt;
results.txt not found. All variables will start from 0.&lt;br /&gt;
============================================================================&lt;br /&gt;
Press Ctrl+C at any point to stop the simulation.&lt;br /&gt;
============================================================================&lt;br /&gt;
Completed!  Check results.txt for hard data.&lt;br /&gt;
============================================================================&lt;br /&gt;
Accumulative data over 10000 runs:&lt;br /&gt;
Chance of winning if you were to keep your choice: 33%&lt;br /&gt;
Chance of winning if you were to change your choice: 66%&lt;br /&gt;
============================================================================&lt;/p&gt;
&lt;p&gt;This proves the solution to the Monty Hall problem: Changing your choice DOUBLES your chance of winning!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">edh</dc:creator><pubDate>Sun, 26 Oct 2014 19:55:48 -0000</pubDate><guid>https://sourceforge.net50164a20aa323e881685de6a48841c7418c21ec5</guid></item></channel></rss>