Random number generator (device): Difference between revisions

From Rosetta Code
Content added Content deleted
(Created draft task, added PicoLisp)
 
m (Line wrapping)
Line 1: Line 1:
{{draft task|File System Operations}}[[Category:Input Output]]
{{draft task|File System Operations}}[[Category:Input Output]]


If your system has a means to generate random numbers involving not only a
If your system has a means to generate random numbers involving not only a software algorithm (like the [[wp:/dev/random|/dev/random]] devices in Unix), show how to obtain a random 32-bit number from that mechanism.
software algorithm (like the [[wp:/dev/random|/dev/random]] devices in Unix),
show how to obtain a random 32-bit number from that mechanism.


=={{header|PicoLisp}}==
=={{header|PicoLisp}}==

Revision as of 08:25, 11 January 2011

Random number generator (device) is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

If your system has a means to generate random numbers involving not only a software algorithm (like the /dev/random devices in Unix), show how to obtain a random 32-bit number from that mechanism.

PicoLisp

<lang PicoLisp>: (in "/dev/urandom" (rd 4)) -> 2917110327</lang>