User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Kinda random pool but not really?

  1. #1
    No Products Registered

    Join Date
    Nov 2006
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Kinda random pool but not really?

    Hi Guys, can anyone tell me how to randomly select a number, (I can probably show it either as a graphic or as a digit on a counter on the playfield)from a pool of 120 such items. (They are not sequential whole numbers)Each time I show one, it gets removed from the pool. Thanx.
    p.s. please, preferably no arrays, life is complicated enough. Maybe retrieve an item from a string? but then how do you eliminate the used item.... cheers Jafa

  2. #2
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Kinda random pool but not really?

    What about the Random Pool object?

  3. #3
    No Products Registered

    Join Date
    Nov 2006
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Kinda random pool but not really?

    How many items can I enter into that?

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Kinda random pool but not really?

    As many as you want I think.

  5. #5
    No Products Registered

    Join Date
    Nov 2006
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Kinda random pool but not really?

    I dont think you can use your own list of numbers? Rather you have to use the ones the machine generates for you, within the max and min range.

  6. #6
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Kinda random pool but not really?

    yes, and whats wrong with that? Simply think of these numbers as ID's which you can link to whatever you want. Store your objects in a list or array and use the randomly generated number to refer to the object on that line for example.

  7. #7
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Burfelt's Avatar
    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    526
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Kinda random pool but not really?

    I have solved this before by having a list object with my pool of numbers. Then I randomly picked a line with a number and deleted it after use.

    This works great if you are doing a pool of numbers but won't allow duplicates, or simulating a deck of cards that you need to draw from.

  8. #8
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Kinda random pool but not really?

    Or Tetris, where each block needs to be used before the next set of 7.

  9. #9
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    461
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Kinda random pool but not really?

    Side note: the new version of the random pool which is currently in development will allow you to add your own numbers to the pool.

  10. #10
    No Products Registered

    Join Date
    Nov 2006
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Kinda random pool but not really?

    Excellent, thanks guys.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Random Pool?
    By diefox in forum Android Export Module Version 2.0
    Replies: 6
    Last Post: 1st August 2013, 06:54 PM
  2. Random Pool, how to?
    By diefox in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 1st August 2013, 03:44 PM
  3. Make Random Pool not-so-random?
    By UltraHammer in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 4th April 2013, 02:53 PM
  4. Random Pool ext.
    By LeGauche in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 28th August 2011, 05:25 PM
  5. Random Pool
    By sabercat in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 8th June 2010, 09:15 PM

Posting Permissions

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