Content-Length: 14308 | pFad | http://itch.io/post/12031662

Post by Piranha305 in RNG Plugin (Construct3) comments - itch.io
Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I think there is a weighted expression, you might need to convert the data type but for examples you can use

.RandomChoiceWeighted("1,2,3,4,5,6,7,8,9,10", "1,1,1,1,1,2,2,2,3,3")

this will pick a number between 1 and 10
with 9,10 being 3x more likely to be chosen
6,7,8 being 2x more likely to be chosen
and 1,2,3,4,5 being the least likely to be chosen

if this is not what you are looking for let me know more details about exactly what your looking and I can add something for it.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://itch.io/post/12031662

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy