dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Help generating Random Images

  1. #1
    Enter the Flash Dragon Prototype3X's Avatar
    Join Date
    Jul 2002
    Location
    In my Mind
    Posts
    1,107

    Help generating Random Images

    I need some help generating 15 random images without no buttons to push or anything like that.

    I think its like: math.random() something?

    Any advice, code examples or tutorial would sure be appreciated!

    Chris

  2. #2
    Senior Member
    Join Date
    Mar 2001
    Location
    Breda, The Netherlands
    Posts
    522
    Yes, something like that, a number between 1 and 15:

    var random_number = Math.floor(Math.random()*15)+1;

    HTH, Danielle.

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