Randomize

Results 1 to 2 of 2

Thread: Randomize

  1. #1
    Strider Guest

    Default Randomize

    Can someone give me the syntax to get a random between 1 and 10?

  2. #2
    John Weeflaar Guest

    Default RE: Randomize

    I assume you mean integer numbers(1 to 10):<BR><BR>JavaScript:<BR>var randnum = Math.floor(Math.random()*10) + 1;<BR><BR>VBScript:<BR>Dim randnum<BR>randnum = Int(Rnd*10) + 1<BR><BR>John

Posting Permissions

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