Opened 7 years ago

Closed 6 years ago

#57 closed defect (wontfix)

Simple randomness

Reported by: cowan Owned by: alexshinn
Priority: major Milestone:
Component: WG1 - Core Keywords:
Cc:

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?

Change History (6)

comment:1 Changed 7 years ago by cowan

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.

comment:2 Changed 7 years ago by cowan

  • Resolution set to fixed
  • Status changed from new to closed

The WG voted to accept RandomCowan.

comment:3 Changed 7 years ago by cowan

  • Resolution fixed deleted
  • Status changed from closed to reopened

To be revoted because there was no simple majority.

comment:4 Changed 6 years ago by cowan

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

comment:5 Changed 6 years ago by cowan

However, this will be revoted.

comment:6 Changed 6 years ago by cowan

  • Resolution set to wontfix
  • Status changed from reopened to closed

WG1 voted not to add randomness of any sort.

Note: See TracTickets for help on using tickets.