On Sun, Feb 9, 2020 at 11:45 AM Kieren MacMillan <
address@hidden> wrote:
Hi Freeman,
> I understand the above and below but not this let ((rand (random 100)))
> Put in your form: (let ((rand (random 100))) ...)
Here are the thoughts of a Scheme newbie — hopefully they are correct! =)
Working from the inside out:
The first set of parentheses is needed to encapsulate the random number procedure/_expression_:
(random 100)
The second set of parentheses associates that procedure/_expression_ (a.k.a. result) with a variable [to be set using Let]:
(rand (random 100))
The third set encloses the "complete set of [Let] variables":
((rand (random 100)))
Ok you are getting closer to what i am asking.
The fourth set [in Harm’s form] is for the Let procedure/_expression_ itself:
(let ((rand (random 100)))
Rerote (let ((rand (random 100))) ...) . I need to understand it so that i know which to use and when?
((rand (random 100)) or (rand (random 100) for (let ((rand (random 100))) ...) or
(let(rand (random 100)) ...) .
Thank you, ƒg
Hope that helps you understand it!
Kieren.
________________________________
Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: address@hidden