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.
Source for ticket #57
cc
changetime
2011-01-24 06:39:16
component
WG1 - Core
description
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?
id
57
keywords
milestone
owner
alexshinn
priority
major
reporter
cowan
resolution
wontfix
severity
status
closed
summary
Simple randomness
time
2010-05-03 00:02:02
type
defect
Changes
Change at time 2011-01-24 06:39:16
author
cowan
field
comment
newvalue
WG1 voted not to add randomness of any sort.
oldvalue
6
raw-time
1295822356000000
ticket
57
time
2011-01-24 06:39:16
Change at time 2011-01-24 06:39:16
author
cowan
field
resolution
newvalue
wontfix
oldvalue
raw-time
1295822356000000
ticket
57
time
2011-01-24 06:39:16
Change at time 2011-01-24 06:39:16
author
cowan
field
status
newvalue
closed
oldvalue
reopened
raw-time
1295822356000000
ticket
57
time
2011-01-24 06:39:16
Change at time 2010-12-17 16:34:28
author
cowan
field
comment
newvalue
However, this will be revoted.
oldvalue
5
raw-time
1292574868000000
ticket
57
time
2010-12-17 16:34:28
Change at time 2010-12-17 16:32:13
author
cowan
field
comment
newvalue
The WG voted not to add random numbers to WG1 Scheme.
oldvalue
4
raw-time
1292574733000000
ticket
57
time
2010-12-17 16:32:13
Change at time 2010-10-19 00:02:42
author
cowan
field
comment
newvalue
To be revoted because there was no simple majority.
oldvalue
3
raw-time
1287421362000000
ticket
57
time
2010-10-19 00:02:42
Change at time 2010-10-19 00:02:42
author
cowan
field
resolution
newvalue
oldvalue
fixed
raw-time
1287421362000000
ticket
57
time
2010-10-19 00:02:42
Change at time 2010-10-19 00:02:42
author
cowan
field
status
newvalue
reopened
oldvalue
closed
raw-time
1287421362000000
ticket
57
time
2010-10-19 00:02:42
Change at time 2010-10-18 02:37:52
author
cowan
field
comment
newvalue
The WG voted to accept RandomCowan.
oldvalue
2
raw-time
1287344272000000
ticket
57
time
2010-10-18 02:37:52
Change at time 2010-10-18 02:37:52
author
cowan
field
resolution
newvalue
fixed
oldvalue
raw-time
1287344272000000
ticket
57
time
2010-10-18 02:37:52
Change at time 2010-10-18 02:37:52
author
cowan
field
status
newvalue
closed
oldvalue
new
raw-time
1287344272000000
ticket
57
time
2010-10-18 02:37:52
Change at time 2010-05-03 00:12:38
author
cowan
field
comment
newvalue
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.
oldvalue
1
raw-time
1272820358000000
ticket
57
time
2010-05-03 00:12:38