From: Morton Goldberg Date: 2007-09-17T00:18:23+09:00 Subject: Re: rand() v. rand(0.1) ? On Sep 15, 2007, at 3:54 PM, 7stud -- wrote: > That was my analysis too, however pickaxe2 has some code on p. 138 > that > calls rand(0.1). You've found a bug in the Pickaxe book. I'm guessing but I suspect that sleep(rand(0.1)) should be sleep(0.1 * rand) That is, I think the idea was to sleep in the range 0.0 to 0.1 seconds, not 0.0 to 1.0 seconds. Regards, Morton