User Tag List

Results 1 to 6 of 6

Thread: Random Number generator

  1. #1
    No Products Registered

    Join Date
    Jan 2009
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Random Number generator

    How can i set up a random number generator, so I can set up a soundtrack? I used to know how to do it... I cant remember... Ill need a few of them in each frame... for different reasons.

  2. #2
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random Number generator

    Type the expression 'random(n)' where n is the amount of numbers it can have starting with 0, so 'random(6)' will generate 0, 1, 2, 3, 4 & 5 so if you wanna make a dice 'random(6)+1' would be best.

    Edit: On MMF2 the nifflas object lets you set a minimum & a maximum, this is less confusing.

  3. #3
    No Products Registered

    Join Date
    Jan 2009
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random Number generator

    Where do I type this in? How do i do this?

  4. #4
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random Number generator

    In the Expression Editor.

  5. #5
    No Products Registered

    Join Date
    May 2008
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random Number generator

    Where is the Expression editor?

  6. #6
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,761
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Random Number generator

    It depends on what function you are tring to accomplish. In the "Special" compare two values, brings up the Expression editor. If you have a counter, you can right click under it and this brings up a menu, and you can set the counter to random in the Expression editor that pops up.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

Similar Threads

  1. Getting a random number between a negative and positive number
    By D_Light in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th January 2013, 11:51 PM
  2. A Random Number Generator from a Pool
    By robsterdobster in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 19th February 2012, 10:13 PM
  3. Random Map Generator?
    By dragonguy in forum Multimedia Fusion 2 - Technical Support
    Replies: 37
    Last Post: 6th July 2008, 03:58 PM
  4. Random Number Generator
    By bkfitww in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 10th December 2006, 12:30 AM
  5. Possible bug with random number generator
    By MJK in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 15th November 2006, 07:27 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
  •