mtwist.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <html lang="en">
  2. <head>
  3. <title>mtwist - avram - a virtual machine code interpreter</title>
  4. <meta http-equiv="Content-Type" content="text/html">
  5. <meta name="description" content="avram - a virtual machine code interpreter">
  6. <meta name="generator" content="makeinfo 4.13">
  7. <link title="Top" rel="start" href="index.html#Top">
  8. <link rel="up" href="External-Libraries.html#External-Libraries" title="External Libraries">
  9. <link rel="prev" href="math.html#math" title="math">
  10. <link rel="next" href="minpack.html#minpack" title="minpack">
  11. <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
  12. <meta http-equiv="Content-Style-Type" content="text/css">
  13. <style type="text/css"><!--
  14. pre.display { font-family:inherit }
  15. pre.format { font-family:inherit }
  16. pre.smalldisplay { font-family:inherit; font-size:smaller }
  17. pre.smallformat { font-family:inherit; font-size:smaller }
  18. pre.smallexample { font-size:smaller }
  19. pre.smalllisp { font-size:smaller }
  20. span.sc { font-variant:small-caps }
  21. span.roman { font-family:serif; font-weight:normal; }
  22. span.sansserif { font-family:sans-serif; font-weight:normal; }
  23. --></style>
  24. </head>
  25. <body>
  26. <div class="node">
  27. <a name="mtwist"></a>
  28. <p>
  29. Next:&nbsp;<a rel="next" accesskey="n" href="minpack.html#minpack">minpack</a>,
  30. Previous:&nbsp;<a rel="previous" accesskey="p" href="math.html#math">math</a>,
  31. Up:&nbsp;<a rel="up" accesskey="u" href="External-Libraries.html#External-Libraries">External Libraries</a>
  32. <hr>
  33. </div>
  34. <h3 class="section">D.12 <code>mtwist</code></h3>
  35. <p>The <code>mtwist</code> library interfaces to a random number generator
  36. <a name="index-random-numbers-780"></a>based on the Mersenne Twistor algorithm. The algorithm has good
  37. properties but is not meant to be cryptographically secure. The
  38. library functions are of the form
  39. <pre class="example"> library('mtwist',f)
  40. </pre>
  41. <p class="noindent">where <code>f</code> is one of the followng character strings.
  42. <pre class="example"> bern u_cont u_disc u_path u_enum w_disc w_enum
  43. </pre>
  44. <p>Formally they are not mathematical functions because their results
  45. depend on a pseudo-random number that is not uniquely determined by
  46. their arguments. The numbers are generated deterministically in a
  47. sequence starting from a seed derived from the system clock at the
  48. time <code>avram</code> is launched, and each call uses the next number
  49. in the sequence. In so doing, it simulates a random draw from a
  50. uniformly distributed population.
  51. <ul class="menu">
  52. <li><a accesskey="1" href="mtwist-calling-conventions.html#mtwist-calling-conventions">mtwist calling conventions</a>
  53. <li><a accesskey="2" href="mtwist-exceptions.html#mtwist-exceptions">mtwist exceptions</a>
  54. <li><a accesskey="3" href="Additional-mtwist-notes.html#Additional-mtwist-notes">Additional mtwist notes</a>
  55. </ul>
  56. </body></html>