A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Random numbers.

Threaded View

  1. #1
    Junior Member
    Join Date
    Jun 2005
    Posts
    9

    Random numbers.

    Hi!

    I am making a game in 3DFA.
    And I want to work with a dice.
    Everything is good and all but I don't exactly know the script for a random number.
    I found the functions of Blanius.
    This script:
    Code:
    function randomRange(Min,Max){
        return random(Max-Min+1)+Min;
    }
    And how can I get the output into a textbox. What should I insert as the variable?


    Can someone help?
    Thnx!

    Grtz,, Yoer88
    Last edited by Yoer88; 08-06-2005 at 11:09 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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center