Thread: need help on a small programm

  1. #1
    Registered User
    Join Date
    Jul 2005

    need help on a small programm

    Hi, I have a "big problem" because I'm more than a beginner in C and I have to make a small program that extract a random number from a given range. I also want to ask if I can make something like that to work with excel - I have a numbered list of persons in excel and i should random extract one person. Can a little program generate a random number based on numbers in excel list and then in output to show the generated number and the person who has this number? Can anyone help me with hints or other resources? Please ...
    Thank you,

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe

    Excel also has a rand() function, which can be used in much the same way.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jul 2005
    thanx for the answer

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bush's address
    By VirtualAce in forum A Brief History of
    Replies: 51
    Last Post: 09-27-2008, 03:44 PM
  2. how to split long programe in small files
    By umeshjaviya in forum C Programming
    Replies: 11
    Last Post: 04-15-2008, 02:45 AM
  3. want to make this small program...
    By psycho88 in forum C++ Programming
    Replies: 8
    Last Post: 11-30-2005, 02:05 AM
  4. FILES in WinAPI
    By Garfield in forum Windows Programming
    Replies: 46
    Last Post: 10-02-2003, 06:51 PM
  5. yhatzee, small straight
    By uglyjack in forum C++ Programming
    Replies: 2
    Last Post: 06-13-2002, 03:09 AM