Implementation of ChanceJS for C3Runtime, This Library provides utility function to help generate random data.
Thanks for porting this over to C3! Very cool functions.
Your welcome, I only ported some of the expression if there is any thing you need from chance.js let me know and I'll add it
Can you add this? :)
chancejs.com/miscellaneous/weighted.html
added it to version 1.1, also added example to project, the expression is GetWeighted(Value, Weights) where value is a comma separated string "a,b,c" which are the values to pick from, and Weights is also a comma separated string "10,5,1" which are the weights assigned to each value, the positions on both string determine where the weights are assigned.
Thank you! :)
C3 has a probability table built in now.....
construct.net/en/make-games/manuals/construct-3/plugin-reference/advanced-random
Yes, i know. My post is one year old. :)