User Tag List

Results 1 to 3 of 3

Thread: Non Repeating Number Generating in IOS - Possible ??

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    hcem's Avatar
    Join Date
    Nov 2012
    Posts
    130
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Non Repeating Number Generating in IOS - Possible ??

    Hi there,

    Is there a way to generate random numbers, but without repeating, for IOS exporter?

    Like if we're picking them from a number pool.

    I'm trying to use this for randomly generating the answers for a math quiz/test. The answers in the test obviously should not repeat within the question. And they must be chosen from a pool randomly.

    Anyone have an idea??

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleMac Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,704
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just create a list with each line having a unique number on it (for example, from 0 to 9). This is where the random number will be picked from. Then, when you want a non-repeating random number, randomly select one of the lines, and then get the number that's on that line. Then simply delete the selected line from the list.

    Example here: https://www.box.com/s/uqj81jvx25acp25hdiml

    You can just copy the list over to your application, and it will generate a random number when you start a loop "generateRandom" once. The outputted number will be in the "_Return" alterable value of the list. You don't need the string or button in your application - they're just there for demonstration purposes. You can change the range of the generator by modifying the "MinNumber" and "MaxNumber" alterable values in the list object.

    This should work with all of the runtimes. Let me know if you have any problems.

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    hcem's Avatar
    Join Date
    Nov 2012
    Posts
    130
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Non Repeating Number Generating in IOS - Possible ??

    thanks! i will study the example

Similar Threads

  1. Non Repeating Number Generating in IOS .
    By hcem in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 19th January 2013, 03:51 PM
  2. non repeating number?
    By gen in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 31st May 2011, 04:23 AM
  3. Repeating a frame.
    By kjellm87 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 22nd May 2009, 04:11 PM
  4. No Repeating Names
    By SpineRaptor in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 20th March 2008, 03:37 AM
  5. Generating Serial Number Lists - how?
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 5th April 2007, 06:28 PM

Tags for this Thread

Posting Permissions

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