Pseudorandom number generator image: Difference between revisions
m
→{{header|Julia}}
(Improved spacing, issue with image file) |
|||
Line 18:
* Linear congruential generator [https://en.wikipedia.org/wiki/Linear_congruential_generator].
<br><br>
=={{header|Julia}}==
Julia uses the Mersenne Twister algorithm for its default rand() function. That algorithm uses
over 600 32-bit ints to represent its internal state, rather than just a product of
two or three primes.
<lang julia>using FileIO, ImageIO
save("randombw.png", rand(Float16, 1000, 1000))
</lang>
|