User Tag List

Results 1 to 1 of 1

Thread: Fast weighted random using strings

  1. #1
    Clicker Fusion 2.5Fusion 2.5+ DLC
    casleziro's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    643
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)

    Fast weighted random using strings

    Fast, very simple method to do a weighted random function. Use any number, letter (upper and lowercase) or symbol to compare against, and adjust the chance of them showing up by increasing or decreasing the amount of times they appear in the source string. There is no need to set the source string every time; you could preset it if you want and just set the return whenever needed.

    I have seen a method posted before about using a list object and randomly getting a line, but list objects are very expensive as opposed to a simple string or alt string.
    Attached files Attached files

Similar Threads

  1. Replies: 3
    Last Post: 3rd September 2017, 11:50 AM
  2. Game Of Life - Fast Loop = not that fast :)
    By bad_rick in forum Fusion 2.5
    Replies: 7
    Last Post: 20th June 2016, 07:36 PM
  3. Weighted Random Math Question
    By Bree in forum Fusion 2.5
    Replies: 7
    Last Post: 16th October 2015, 10:56 PM
  4. Fast loops leave a space at a random time? why?
    By LittleTinyBabyMan in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 28th May 2012, 09:20 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
  •