"sanofsans" <[EMAIL PROTECTED]> wrote:
> 
> Does anybody have a suggestion for a function that returns a 4
> digit random number.

  #include <stdlib.h>
  int rand(void);

See the comp.lang.c FAQ for caveats and other hints.

  http://c-faq.com/

> Most of my random functions produce the same number
> over and over!!

You're probably seeding every time, which you don't need to do.
Of course, I'm only guessing. But then I can only guess because
you didn't avail yourself of the chance to learn by posting what
you have.

-- 
Peter

Reply via email to