randome numbers

Results 1 to 4 of 4

Thread: randome numbers

  1. #1
    Join Date
    Dec 1969
    Posts
    148

    Default randome numbers

    I need to produce random numbers and have them appear on the browser. IE. <BR><BR>Here are your stats:<BR> Strength : (rand from 13-18)<BR>etc.

  2. #2
    Chad Franklin Guest

    Default RE: random numbers

    &#060;%=INT((18 - 13 + 1) * RND + 13)&#037;&#062;<BR><BR>This will do it.<BR>

  3. #3
    Join Date
    Dec 1969
    Posts
    148

    Default RE: random numbers

    It doesn&#039t show up on the page, i have<BR><BR>Strength = &#060;%=INT((18 - 13 + 1) * RND + 13)&#037;&#062;<BR><BR>and it shows up<BR><BR>Strength = <BR>Mickey

  4. #4
    Join Date
    Dec 1969
    Posts
    511

    Default RE: random numbers

    You need to put the "Randomize" keyword at the start of your script, well before you call the RND function anyway. You only have to use randomize once per script.<BR><BR>Randomize<BR>DiceRoll = Int((6 * Rnd) + 1)<BR><BR>Pete


Posting Permissions

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