Random number generator (included): Difference between revisions

no edit summary
No edit summary
Line 934:
=={{header|zkl}}==
zkl uses the Xorshift (http://en.wikipedia.org/wiki/Xorshift) random number generator. It will also, on occasion, read from /dev/urandom.
=={{header|Z80 Assembly}}==
 
This is a bit of a stretch, but the R register which handles memory refresh can be read from to obtain somewhat random numbers. It only ranges from 0 to 127 and is most likely to be very biased but this is as close to a built-in RNG as the language has.
<lang z80>ld a,r</lang>
=={{header|ZX Spectrum Basic}}==
 
Line 941 ⟶ 943:
 
 
{{omit from|6502 Assembly|No RNG}}
 
{{omit from|68000 Assembly|No RNG}}
{{omit from|8086 Assembly|No RNG}}
{{omit from|bc|No RNG.}}
{{omit from|dc|No RNG.}}
1,489

edits