This site is a static rendering of the Trac instance that was used by R7RS-WG1 for its work on R7RS-small (PDF), which was ratified in 2013. For more information, see Home.

Ticket 57: Simple randomness

2011-01-24 06:39:16
WG1 - Core
alexshinn
major
cowan
wontfix
source
closed
2010-05-03 00:02:02
defect

Student programs often want a small amount of randomness, not necessarily of very high quality. Shall we provide a simple interface to a random variable in WG1 Scheme?

I suggest we provide two procedures:

(random-integer ''n'')`
Accepts a non-negative integer argument n as the exclusive upper bound of the result. The inclusive lower bound is 0.
(random-real)
Provides a real number with exclusive upper bound 1.0 and exclusive lower bound 0.0.

In both cases, the results appear to be independent and uniformly distributed. This is the smallest conceivable subset of SRFI 27. See the design rationale for "why" explanations.

resolutionfixed
statusnewclosed

The WG voted to accept RandomCowan.

resolutionfixed
statusclosedreopened

To be revoted because there was no simple majority.

The WG voted not to add random numbers to WG1 Scheme.

However, this will be revoted.

resolutionwontfix
statusreopenedclosed

WG1 voted not to add randomness of any sort.