Results 1 to 5 of 5

Thread: Random(); Help!

  1. #1
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Random(); Help!

    What would Random(3); do?

    Would that return a random integer from 0 to 2 or 1 to 3?

  2. #2
    Join Date
    Sep 2008
    Location
    New Zealand
    Posts
    157
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  3. #3
    Join Date
    Sep 2008
    Location
    Earth
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    no, its 0 to 20 run this:
    SCAR Code:
    program New;
    var
    hi : Integer;
    begin
    Hi := Random(3);
    Writeln(IntToStr(Hi))
    end.
    and you'll find out

  4. #4
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    0 to 2.

  5. #5
    Join Date
    Sep 2008
    Location
    New Zealand
    Posts
    157
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by bullzeye95 View Post
    0 to 2.
    Actually? I am not on my laptop with scar atm so can't check.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. We could all be gone by this random.
    By Geo in forum News and General
    Replies: 17
    Last Post: 05-31-2007, 12:55 AM
  2. What random was that!?
    By Ciesson in forum News and General
    Replies: 10
    Last Post: 01-20-2007, 10:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •