<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Class -- it dawned on me last week that the reason some of you
      may not have gotten started on the Fortran or Lisp versions of
      Poker is because you didn't know how to generate random numbers
      for those languages.  While each language does in fact have its
      own method for generating random numbers, I am providing you with
      examples and code for how I implement the Park-Miller random
      number generator.  This is a robust random number generator that
      can easily be coded across several languages.  In fact, I am
      providing <a moz-do-not-send="true"
href="https://theochem.mercer.edu/csc330/languages/Generic/random.html">examples
      </a>for you in Fortran, Lisp, Pascal, Ada, and Rust.</p>
    <p>If you do not have have a unique random seed you will get the
      same set of random numbers every time.  A common technique is to
      generate a random seed based on the systems date and time.  To
      save you time in having to look up all of these systems calls for
      date and time I am providing a second set of <a
        moz-do-not-send="true"
href="https://theochem.mercer.edu/csc330/languages/Generic/randomSeed.html">examples</a>
      that demonstrate how to "seed" the random number generator in
      Fortran, Lisp, Pascal, Ada and Rust.  </p>
    <p>Hopefully you can use these web pages and example to start
      building your card decks in the languages required for the second
      version of the poker project. </p>
    <div class="moz-signature">p.s. -- I pulled the initial Fortran
      code, which I modifed to modern Fortran, from a program I wrote
      almost 30 years ago!</div>
    <div class="moz-signature">-- <br>
      <b>Andrew J. Pounds, Ph.D.</b><br>
      <i>Professor of Chemistry and Computer Science</i><br>
      <i>Director of the Computational Science Program</i><br>
      <i>Mercer University, Macon, GA, 31207 (478) 301-5627 </i></div>
  </body>
</html>