[plt-scheme] Random Numbers in EOPL Level

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Tue Apr 3 12:54:56 EDT 2007

Eugene Wallingford wrote:

>Hello,
>
>     My students use (random) to generate data sometimes.  Now
>     that we have moved up to the EOPL language level, for
>     define-datatype and its ilk, we don't have access to
>     random.  Is there a standard way to create random numbers
>     at that level, or do we just roll our own random?  Thanks.
>
Velkommen til DrScheme, version 369.3-svn6jan2007.
Sprog: Essentials of Programming Languages (2nd ed.).
 > (require (only mzscheme random))
 > (random 5)
1

-- 
Jens Axel Søgaard




Posted on the users mailing list.