User Tag List

Results 1 to 7 of 7

Thread: The Randomize Function

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Godspeed8118's Avatar
    Join Date
    Feb 2008
    Location
    NJ, United States
    Posts
    67
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    The Randomize Function

    Hello,

    I need to generate a random number between 1 and 13. I figured this was what the "randomize" function is for but when it asks for user input I'm not quite sure what to enter. I somebody could briefly explain how to use the function it would be immensely appreciated!!!

    Thanks

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    1+Random(13)

    Random(#) returns a number between 0 and the number below what you insert... so Random(5) goes 0-4, Random(10) goes 0-9, etc...

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To make it more user friendly, I think MMF3 would benefit from a more intuitive random number generation function. How about random(min,max)? Stochastic Utility has this feature and in addition to integers also lets you generate a random floating point value within a range. It's super useful.

  4. #4
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Yeah that would be nice.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Godspeed8118's Avatar
    Join Date
    Feb 2008
    Location
    NJ, United States
    Posts
    67
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, great! Thanks. Seems simple enough. I'll try this as soon as I get the chance

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Godspeed8118's Avatar
    Join Date
    Feb 2008
    Location
    NJ, United States
    Posts
    67
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there a way that I can create an event and then say "there is a x out of y chance" that something will occur?

  7. #7
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Posts
    1,305
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Here's a hint - why don't you open up the MMF2 help file, and see what happens when you type "there is a x out of y chance" into the search box?

Similar Threads

  1. Function Eggtimer problem // Power Function for MMF2 Android?
    By ogrgkyle in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 24th May 2013, 03:17 AM
  2. Randomize Array
    By Keith in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 9th September 2011, 04:46 PM
  3. Best way to randomize with a probability table
    By Boba Fonts in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 11th August 2011, 06:25 AM
  4. Randomize option
    By RagingTiger in forum File Archive
    Replies: 7
    Last Post: 13th October 2006, 05:11 AM

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
  •