On Sun, Feb 9, 2020 at 11:45 AM Kieren MacMillan < kieren_macmil...@sympatico.ca> 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: i...@kierenmacmillan.info > >