|
From: | Terrence Brannon |
Subject: | Re: [Chicken-users] srfi-27 - producing pseudo and truly random numbers over a uniform distribution |
Date: | Mon, 29 Oct 2007 03:43:30 -0400 |
On 10/29/07, Ivan Raikov <address@hidden> wrote: > > > Uniformly-distributed integers can be generated with the > random-mtzig:random! procedure. procedure: random-mtzig:random! :: STATE -> INTEGER Returns a random integer value between 0 and the largest machine-representable unsigned integer on the current platform. I am looking for a procedure with this signature: some-func :: STATE -> INTEGER -> INTEGER It takes a state and an integer n and returns an integer in the interval [0,n)
[Prev in Thread] | Current Thread | [Next in Thread] |