Thread: Random Numbers

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    6
    How would it be inside another function if I ended main before sparky? Just reading sparky is funny. Is rand defined already with a certain set of numbers or do I have to do that also?

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by Robster66 View Post
    How would it be inside another function if I ended main before sparky?
    It wouldn't. That's kind of the point. Having one function inside another is highly illegal. That's why you wouldn't want sparky inside another function, 'cause it's illegal to do such a thing.

    Quote Originally Posted by robster66 View Post
    Just reading sparky is funny. Is rand defined already with a certain set of numbers or do I have to do that also?
    Have you looked up rand at all?

  3. #3
    Registered User
    Join Date
    Feb 2009
    Posts
    6
    I have looked it up but I do not completely understand. What I am saying is that how is it inside of main if main is ended before sparky starts?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  2. Doubts regarding random numbers generation
    By girish1026 in forum C Programming
    Replies: 9
    Last Post: 12-31-2008, 10:47 PM
  3. random numbers limit
    By HAssan in forum C Programming
    Replies: 9
    Last Post: 12-06-2005, 07:51 PM
  4. Generate random numbers in Lucky7 project using C#
    By Grayson_Peddie in forum C# Programming
    Replies: 1
    Last Post: 04-11-2003, 11:03 PM
  5. random numbers
    By lil_plukyduck in forum C++ Programming
    Replies: 5
    Last Post: 01-14-2003, 10:14 PM