Hi Freeman,
> Ok you are getting closer to what i am asking.
I’m glad!
> 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)
You would never use either, because the parentheses aren’t
matched/paired/balanced. ;)
> for (let ((rand (random 100))) ...) or (let(rand (random 100)) ...) .
As Harm pointed out, indentation will help… Here’s an extremely broken-down
version:
(let
(
(rand (random 100))
(a (+ 2 3))
)
)
Compressing it onto a single line [which is not necessarily encouraged] gives:
(let ((rand (random 100)) (a (+ 2 3))))
Hope that helps!
Kieren.
________________________________
Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: [email protected]