00:44 (quit) masm: Quit: Leaving. 02:00 (quit) Gwyth: Remote host closed the connection 02:18 (quit) askhader: Quit: Lost terminal 02:18 (join) askhader 02:22 (join) noelw 02:22 noelw: Hi 02:23 noelw: Anyone awake? 02:23 noelw: and knowledgable on syntax certificates? 02:26 (quit) jonrafkind: Ping timeout: 272 seconds 02:27 noelw: Slackers, all of you 02:38 (quit) noelw: Ping timeout: 240 seconds 02:50 (join) Gwyth 04:06 (join) abbe 07:13 (join) hanDerPeder 07:13 (join) lucian 07:15 bremner: yup 07:32 (join) MayDaniel 08:35 (join) masm 09:02 (join) mceier 09:10 (join) b-man_ 09:21 (nick) emma -> em 09:27 (quit) MayDaniel: 10:03 (quit) b-man_: Remote host closed the connection 10:22 (quit) masm: Ping timeout: 255 seconds 10:24 (join) masm 11:44 (join) sam191 11:46 (quit) sam191: Quit: sam191 12:08 (join) jao 12:16 (join) tonyg_ 12:16 (quit) abbe: *.net *.split 12:16 (quit) em: *.net *.split 12:16 (quit) rudybot: *.net *.split 12:16 (quit) alexsuraci: *.net *.split 12:16 (quit) tonyg: *.net *.split 12:17 (join) alexsuraci 12:17 (join) rudybot 12:19 (join) abbe 12:20 (quit) abbe: Client Quit 12:20 (join) abbe 12:22 (join) em 12:31 (join) anRch 12:35 (join) b-man_ 12:48 (quit) tv|z: Ping timeout: 245 seconds 12:50 (join) tv|z 12:52 (join) jonrafkind 13:27 (quit) lucian: Remote host closed the connection 13:28 (join) lucian 13:43 (quit) anRch: Quit: anRch 14:44 (join) molbdnilo 14:45 (quit) b-man_: Remote host closed the connection 14:48 (join) b-man_ 14:49 (join) pondo 15:34 (join) MayDaniel 16:19 (quit) MayDaniel: Read error: Connection reset by peer 16:24 (quit) molbdnilo: Quit: tubby bye-bye! 16:58 (quit) b-man_: Remote host closed the connection 18:04 (quit) mceier: Quit: leaving 18:37 (quit) rapacity: Read error: Operation timed out 18:39 (join) rapacity 18:41 (quit) hanDerPeder: Quit: hanDerPeder 18:48 (quit) Lajla: Ping timeout: 245 seconds 18:56 (quit) pondo: Quit: Page closed 19:30 (join) hanDerPeder 20:09 (quit) hanDerPeder: Quit: hanDerPeder 20:12 (join) b-man_ 20:37 (join) blake_johnson 20:37 (quit) blake_johnson: Client Quit 21:22 (quit) lucian: Remote host closed the connection 21:59 (quit) Gwyth: Ping timeout: 255 seconds 22:24 (join) Samy 22:24 (quit) b-man_: Ping timeout: 264 seconds 22:25 Samy: i call my function with (name param1 param2) and want that my function only return param1 how i can do that ? 22:26 Samy: (color yellow blue) --> return yellow 22:29 Samy: Or is there a way for returns 1 random item from a list ? Something like (random list) -> returns random element from a list ? 22:36 jonrafkind: (define (name a b) a) 22:37 jonrafkind: (list-ref (random (length some-list)) some-list) 22:48 Samy: Thx 22:50 Samy: Now another problem. I want random a number (random 2) and save it . In a condition i want compare this randomed number with another numbers. 22:51 jonrafkind: (define x (random 2)) 22:51 jonrafkind: (if ... (= x y) ...) 22:51 jonrafkind: the real question is why is that not obvious 22:53 Samy: Because i think evrytime i use X in my code this random new number or not ? 22:53 jonrafkind: what do you mean? 22:53 Samy: (if x==2) ; random new number (if x==3) ; random new number .... 22:54 Samy: Ok i try what you said mom ;) 22:54 jonrafkind: variables dont magically change value 22:54 jonrafkind: once you set them they stay that way 22:58 Samy: Ok thx it works 23:18 Samy: Ok i have (define x (random 2)) now i want x new randomed. How i can do that ? 23:19 jonrafkind: (set! x (random 2)) 23:19 Samy: thx 23:19 jonrafkind: its better if you can use a new variable instead of setting an old variable 23:19 Samy: why ? 23:21 jonrafkind: because when you have a lot of code you will quickly get confused if you use set! a lot 23:21 jonrafkind: you can do it either way for now, but heed my warning for the future 23:23 Samy: How you solve this than. I have a code block what need 1 rnd number. Sometimes this codeblock must be used 100 times and evrytime this need a new rnd number 23:24 jonrafkind: put the code block into a function and define the random variable in there 23:24 jonrafkind: (define (do-stuff) (define x (random 5)) ....) 23:29 Samy: racket allow define in define ? 23:29 jonrafkind: yes 23:29 Samy: ah ok 23:29 jonrafkind: there are many times when you can write (define ...), sometimes you cant 23:29 jonrafkind: but you can do things like (let ([x 2]) (define q 5) (display q)) 23:30 jonrafkind: but you cant do (cond (define x 5) ([= x 5] ...)) 23:44 (quit) alexsuraci: Quit: leaving 23:45 (join) alexsuraci