Thread: Need Help with Random Function in C

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    13

    Unhappy Need Help with Random Function in C

    Hello fellow programmers, I am seeking your help yet again.. I am having a hard time with the syntax for some coding.. here is the dilemma.


    I need to write a function that generates a random integer from 0-10 and set that value to some variable n.


    Can you please help me with the syntax for this? Emphasis on calling on the random function -- if it needs a library and how to chose the range of the random function.

    This is an urgent matter your help is much appreciated!

  2. #2
    Registered User C_Coder's Avatar
    Join Date
    Oct 2001
    Posts
    522
    All spelling mistakes, syntatical errors and stupid comments are intentional.

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    13

    Thanks

    Thank you for your help!!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 03:06 PM
  2. doubt in c parser coding
    By akshara.sinha in forum C Programming
    Replies: 4
    Last Post: 12-23-2007, 01:49 PM
  3. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Replies: 5
    Last Post: 02-08-2003, 07:42 PM