User Tag List

Results 1 to 5 of 5

Thread: random numbers

  1. #1
    No Products Registered

    Join Date
    Feb 2007
    Location
    USA
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    random numbers

    Would someone give me an example of creating and using random numbers?

  2. #2
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: random numbers

    Here is a simple example on how to make a counter create a random number every 1 second if this is what you mean.

    Random Example

  3. #3
    No Products Registered

    Join Date
    Feb 2007
    Location
    USA
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: random numbers

    thank you brandon but i have NO idea how you did that. I need a step by step click here do this do that example as is provided in many tutorials. However i cannot find a tutorial that provides that type of instruction on creating and using a random number.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: random numbers

    Ok here we go.

    1: In the frame editor, create a counter.
    2: In the event editor, click on New Condition.
    3: Select a condtion, for instance Start of frame from the Storybord controls icon.
    4: Right click in the square below the counter and select Set counter.
    5: Click on the Retrieve data from an object button.
    6: Right-click the Special icon and select Generate a random number
    7: You'll see this text: Random(>Enter base number<)
    8: To get 10 random numbers, change this text to Random(10)
    9: Run the application. You'll see that the counter will be any number from 0 to 9.

    If you want it to be a number from 1 to 10, change the text to Random(10)+1. This is because it always generates a number from 0 and up. Random(2) will generate either 0 or 1, whilte Random(2)+1 will generate either 1 or 2.

    I hope this helps.

  5. #5
    No Products Registered

    Join Date
    Feb 2007
    Location
    USA
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: random numbers

    Popcorn - Thank you thank you thank you! Thats exactly what I needed! Im working with the tutorials but like to experiment on my own and frequently get into these "how would you do that" situations. Many thanks.

Similar Threads

  1. Random Numbers and expiring the result numbers.
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 26th April 2013, 04:11 PM
  2. Random numbers?
    By infinitum3d in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 21st March 2012, 04:07 PM
  3. random numbers
    By nick_Peoples in forum The Games Factory 2 - Technical Support
    Replies: 12
    Last Post: 10th February 2010, 12:51 AM
  4. Random numbers help
    By Atherton in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 5th January 2010, 12:41 PM
  5. Random Numbers Greater then Random Numbers...
    By Hordolur in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 15th April 2009, 06:24 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
  •