Can't make up my mind
CaMelRyder
created: 2006-08-01 14:13:52
(rand % rand) ? shit() : get_off_the_pot();

¥peace from CaMelRyder¥
Re: Can't make up my mind
created: 2006-08-01 15:08:37
Did you realize your code was equal to
rand(%{'rand'}) ? shit() : get_off_the_pot();
I noticed the above when I realized that the following would give divide by zero errors.
(rand() % rand()) ? shit() : get_off_the_pot();
Re: Can't make up my mind
created: 2006-08-23 11:04:40
The likelyhood that (rand % rand) will return false is one out of 4^randbits... Did you possibly mean (int(rand(2)) or (rand>.5)? (UPD: Typo!)

perlmonks.org content © perlmonks.org and CaMelRyder, ikegami, innominate

prlmnks.org © 2006 edmund von der burg (eccles & toad)

v 0.03