Pseudorandom number generator image: Difference between revisions
Content added Content deleted
(Added XPL0 example.) |
|||
Line 519: | Line 519: | ||
=={{header|XPL0}}== |
=={{header|XPL0}}== |
||
The PRNG is |
The PRNG is linear congruential and is built-in. It's seeded with the time-of-day. |
||
<lang XPL0>int X, Y; |
<lang XPL0>int X, Y; |
||
[SetVid($11B); \VESA 1280x1024x24 |
[SetVid($11B); \VESA 1280x1024x24 |
||
Line 529: | Line 529: | ||
{{out}} |
{{out}} |
||
<pre> |
<pre> |
||
Essentially the same as Delphi's image. |
|||
</pre> |
</pre> |