Fast weighted random using strings

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • 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.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!