Need Help with Random Function in C

This is a discussion on Need Help with Random Function in C within the C Programming forums, part of the General Programming Boards category; Hello fellow programmers, I am seeking your help yet again.. I am having a hard time with the syntax for ...

  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
    523
    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, 12:49 PM
  3. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 01: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, 06:42 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21