User Tag List

Results 1 to 3 of 3

Thread: Range of Random Numbers

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Jaklar's Avatar
    Join Date
    Oct 2012
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Range of Random Numbers

    Greets,

    I need a way to pick a random number between 7-11.

    I know how to pick a random number based on the simple "random(#)" expression, but how would i go about narrowing the range to something very specific?

    I have several ranges that need to be determined, like 12-16, 17-22, 23-28.

    This is for iOS.

    Thanks for any help or guidance you can offer.

  2. #2
    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,364
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Range 7 - 11: 7 + Random(5)
    Range 12 - 16: 12 + Random(5)
    Range 17 - 22: 17 + Random(6)
    Range 23 - 28: 23 + Random(6)

  3. #3
    No Products Registered

    Join Date
    Nov 2014
    Location
    Ohio
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Popcorn This is wonderful! I can use this for my random enemy spawning! Since my enemies phase through walls in order to catch you,
    there is no chance of them getting locked up.

    *Start of Frame
    -Set X Position to "1 + Random(1920)
    -Set Y Position to "1 + Random(1080)

    It works just fine! Thanks, that saved me a lot of extra work!

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 Number Range + Not allowed to repeat
    By Renatos in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 4th August 2012, 06:39 AM
  3. using a range of numbers in expression editor
    By takki in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 8th May 2011, 11:10 PM
  4. 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
  5. Select a range numbers from an alterable value?
    By Mantoid in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 14th March 2009, 09:49 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
  •