• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help with code...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with code...


  • Subject: Re: Help with code...
  • From: John <email@hidden>
  • Date: Thu, 17 Mar 2005 07:59:33 -0500

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.

That is what confused me. The plot would always have the same x/y coordinates, yet I thought it was supposed to "randomize" them (demo purposes). I want to send it exact points to plot, but need to understand how the framework take in data before I can send it data.


Thanks

John

_______________________________________________
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


References: 
 >Duplicate Nib Windows (From: SD <email@hidden>)
 >Re: Duplicate Nib Windows (From: Thomas Davie <email@hidden>)
 >Help with code... (From: John <email@hidden>)
 >Re: Help with code... (From: Andrew White <email@hidden>)

  • Prev by Date: Re: Help with code...
  • Next by Date: Re: Controlling a Mac via email
  • Previous by thread: Re: Help with code...
  • Next by thread: Re: Duplicate Nib Windows
  • Index(es):
    • Date
    • Thread