[(4) (string-append "S" "q" (a))]
[(5) "" ]))
Jos
-Original Message-
From: racket-users@googlegroups.com [mailto:racket-users@googlegroups.com] On
Behalf Of Aysenur Türk
Sent: viernes, 19 de febrero de 2016 13:24
To: Racket Users
Subject: [rack
You are not designing your code. You’re guessing. Is that what you want?
> On Feb 19, 2016, at 7:23 AM, Aysenur Türk wrote:
>
> (define (a)
> (case (random 6)
>[(0) (string-append "P" (a)"→" )]
>[(1) (string-append "R" (a) "↔")]
>[(2) (string-append "T"
(define (a)
(case (random 6)
[(0) (string-append "P" (a)"→" )]
[(1) (string-append "R" (a) "↔")]
[(2) (string-append "T" (a)"∧" ) ]
[(3) (string-append "Z" (a)"⊕")]
[(4) (string-append "S" (a) "q")]
[(5) "" ]))
(a)
"RPRZTZPRZPZT∧⊕→⊕↔→⊕∧⊕↔→↔"
"TPTZ⊕∧→∧"
I tried it
3 matches
Mail list logo