Others
Assessment
CenterForComputing
ChatGPT
Search
Close
Log in
Register
CenterForComputing
You are here:
CenterForComputing
»
Syllabi
»
CSC121SylF2025
»
CSC121F2025Lab07
»
CSC121F2025Lab07Hint02
Creating the random solution
04 Aug 2025 - 19:02
|
Version
1
|
UnknownUser
Start with a blank string.
For the number of pegs:
pick a random number between 0 and one less than the number of colors
concatenate that digit (integer) to the string
Attachments
($count)
Show options
Search:
Sort by:
Name
Date
Author
Size
Type
Results per page:
6
12
24
48
all
Display hidden:
More actions
Create link(s)
Embed
Download
Hide
Unhide
Move
Delete
0
attachment(s)
Select all
Clear all
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback
This website is using cookies.
More info
.
That's Fine