Results 1 to 7 of 7

Thread: random number 28+

  1. #1
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default random number 28+

    how to make with an array a random 28+

    somthing with
    SCAR Code:
    procedure RNumber;
    begin
      for 28 to 999 do
    end;
    i really dunno
    ~Hermen

  2. #2
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by hermpie View Post
    how to make with an array a random 28+

    somthing with
    SCAR Code:
    procedure RNumber;
    begin
      for 28 to 999 do
    end;
    i really dunno
    C : Array[28..999] of Integer;

    ?
    Verrekte Koekwous

  3. #3
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    kk thanks stupid me...
    ~Hermen

  4. #4
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    o shit.. sorry
    SCAR Code:
    Number :Integer;
      RNumber:Array[28..999] of Integer;

    SCAR Code:
    Procedure RandomNumber;
    begin
      Number:=Rnumber
      typesend(intostr(Number));
    end;

    typemismatch on the typesend line
    ~Hermen

  5. #5
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Number := RNumber[Random(Length(RNumber)) + 28];

    or

    Number := RandomRange(28, 999);
    Hup Holland Hup!

  6. #6
    Join Date
    May 2007
    Location
    in a pineapple under the sea
    Posts
    1,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by hermpie View Post
    o shit.. sorry
    SCAR Code:
    Number :Integer;
      RNumber:Array[28..999] of Integer;

    SCAR Code:
    Procedure RandomNumber;
    begin
      Number:=Rnumber
      typesend(intostr(Number));
    end;

    typemismatch on the typesend line
    it should be

    SCAR Code:
    Procedure RandomNumber;
    begin
      Number:=Rnumber
      typesend(inttostr(Number));
    end;

    notice its inttostr not intostr
    [SIZE="4"][CENTER][URL="http://www.youtube.com/watch?v=5YsGJz3j4os"]LOL u mad bro?[/URL][/CENTER][/SIZE]

  7. #7
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks nielsie
    edit:

    and timo
    ~Hermen

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Checking if a number is a whole number or not?
    By Sandstorm in forum OSR Help
    Replies: 4
    Last Post: 10-26-2008, 04:40 PM
  2. Random Number of Clicks?
    By Bourdou! in forum OSR Help
    Replies: 5
    Last Post: 08-12-2007, 05:32 AM
  3. Use an array value to generate a random number
    By IronTeapot in forum OSR Help
    Replies: 7
    Last Post: 10-18-2006, 11:59 PM

Posting Permissions

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