Usage: <tt>input = [ <i>smin smax nmax pn</i> ] SampleMCpath</tt>

<p>
Generate a new path by performing Monte Carlo simulation from an initial condition 
stored in array <tt>S</tt>.
The Monte Carlo simulation continues until the average spin value drops
below <tt><i>smin</i></tt>, or exceeds <tt><i>smax</i></tt>, or if the average number of MC 
steps exceeds <tt><i>nmax</i></tt>.
The resulting path is stored in one of the three paths: <tt>pathA</tt>, <tt>pathB</tt>, 
<tt>pathC</tt>, depending on the value of <tt><i>pn</i></tt>
(1 for <tt>pathA</tt>, 2 for <tt>pathB</tt>, 3 for <tt>pathC</tt>).

<p>
Also see <tt>ComputeSuccessRate</tt>.
