Re: Help with code...
Re: Help with code...
- Subject: Re: Help with code...
- From: Andrew White <email@hidden>
- Date: Thu, 17 Mar 2005 22:28:20 +1100
John wrote:
I *think* each time this (method?) is
called, it generates a random y value, with fixed spacing for the x.
Note that the y values are not strictly speaking random, since the random
number generator is reseeded each pass with 'srand ( entryIndex * 100000
)'. For any given entryIndex, the same X and Y will be generated.
Further note that this will cause unexpected patterns if you use 'rand'
anywhere else in your program.
--
Andrew White
--------------------------------------------------------------------------
This email and any attachments are confidential. They may contain legally
privileged information or copyright material. You should not read, copy,
use or disclose them without authorisation. If you are not an intended
recipient, please contact us at once by return email and then delete both
messages. We do not accept liability in connection with computer virus,
data corruption, delay, interruption, unauthorised access or unauthorised
amendment. This notice should not be removed.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden