A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: How can not repeat a random number

Threaded View

  1. #1
    Senior Member
    Join Date
    May 2016
    Posts
    451

    How can not repeat a random number

    hello,

    How can not repeat a random number




    button code:
    PHP Code:
    on (release) {
    var 
    n:int=Math.randomInt(20) ;
    kofa ;    
    MC.loadMovie("pic" add n add ".jpg");
    // here i need code 
    //to disable repeat numbers
    // it means if n = 2 
    // the number 2 dont show again

    Attached Files Attached Files

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