Functional Problem Solving (CSC 151 2014F) : Outlines
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Rubric] - [Calendar]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Examples] [Handouts] [Labs] [Outlines] [Readings]
Reference: [Setup] [VM] [Errors] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Davis (2013F)] [Rebelsky (2014S)] [Weinman (2014F)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)]
Held: Friday, 14 November 2014
Back to Outline 40 - Vectors. On to Outline 42 - Higher-Order Procedures, Revisited.
Summary
We consider Scheme's random
procedure, how one might use that procedure
in writing simple simulations, and how the procedure can be used to
generate "unpredictable" images.
Related Pages
Overview
random
procedure.Administrivia
map
and all
.random
Procedure(random n)
procedure.n
must be a positive integer.random
returns an integer between 0 and n
-1,
inclusive.