[plt-scheme] Generating Random bignums

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Tue Jan 2 13:38:36 EST 2007

Geoffrey S. Knauth skrev:
> On Jan 2, 2007, at 13:17, Brent Fulgham wrote:
>> Check the "SchemeCookbook.org" for inspiration:
>> http://schemecookbook.org/Cookbook/NumberRecipeBigRandomNumber
> 
>  > (require (lib "27.ss" "srfi"))
>  > (random-integer 1234567890)
> 42
> 
> When I saw that, I wondered if it was a joke (Hitchhiker's Guide...).

Guilty.

Btw - version 1.0 shows how to implement big-random
in terms of random:

<http://schemecookbook.org/twiki/bin/rdiff/Cookbook/NumberRecipeBigRandomNumber?rev1=1.0>

-- 
Jens Axel Søgaard



Posted on the users mailing list.