Pseudorandom number generator image: Difference between revisions

Content added Content deleted
m (added whitespace.)
(Add Factor)
Line 115: Line 115:
{{out}}
{{out}}
[https://ibb.co/d6hwX1Y randbitmap-rdo.png].
[https://ibb.co/d6hwX1Y randbitmap-rdo.png].

=={{header|Factor}}==
Factor's default PRNG is Mersenne Twister, but it can be easily swapped out for others like Drand, Xoroshiro, Blum Blum Shub, lagged Fibonnaci, system RNGs, and more.
{{works with|Factor|0.99 2021-02-05}}
<lang factor>USING: accessors images.testing images.viewer literals math
random sequences ;

CONSTANT: size 500

<rgb-image>
${ size size } >>dim
size sq 3 * [ 256 random ] B{ } replicate-as >>bitmap
image-window</lang>


=={{header|Go}}==
=={{header|Go}}==