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 built in to the language (as well as graphics) and is seeded with the time-of-day.
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>
Same as Delphi's image.
Essentially the same as Delphi's image.
</pre>
</pre>