<div dir="ltr">Someone asked off-list for a C translation of the PDP-11 assembly code. I believe the equivalent modern C would be:<br><br>unsigned int ranx;<br><br>   void<br>  srand(unsigned int seed)<br>      {<br>    ranx = seed;<br> }<br><br>   int<br>   rand(void)<br>    {<div>    ranx = 13077*ranx + 6925;</div><div>    return ranx & 32767;<br>      }<br><div><br></div><div>Best,</div><div>Russ</div><div><br></div></div></div>