User Tag List

Results 1 to 5 of 5

Thread: Randomize Array

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Aug 2011
    Location
    Beverly Hills, CA USA
    Posts
    508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Randomize Array

    I would like to fill an array with the numbers 1-10 ten times (100 elements) and then randomly order the array. Is this possible with MMF2? I should also clarify that this needs to work with the iOS Exporter so no custom modules outside of what is supported by iOS.

    Regards.

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Randomize Array

    Add the numbers to a list first, then take a random item, add it to the array, and remove it from the list until there are no more items (starting a loop for the number of items times is fine).
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Aug 2011
    Location
    Beverly Hills, CA USA
    Posts
    508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Randomize Array

    How do I take a random item? If I say get Random( I could actually try to take something that was already taken. Is there a pick random?

  4. #4
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Randomize Array

    You could delete the line of the list after you take its contents. (You'd have to take random(List Length) each time rather than random(100), because the list size will change during the loop).

  5. #5
    No Products Registered

    Join Date
    Sep 2011
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Randomize Array

    Sorry guys, wrong thread..I changed my post to right place.

Similar Threads

  1. The Randomize Function
    By Godspeed8118 in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 4th April 2013, 03:19 AM
  2. Randomize difference object
    By L13n in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 10th April 2012, 05:35 AM
  3. Positive And Negative Randomize
    By Atom in forum File Archive
    Replies: 1
    Last Post: 1st November 2008, 02:44 PM
  4. Randomize option
    By RagingTiger in forum File Archive
    Replies: 7
    Last Post: 13th October 2006, 05:11 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
  •