Random number, Random List element, Absolute
slyons opened this issue · 2 comments
Issue type:
- ➕ Feature request
Short description:
I was trying out your mod and realized that I wanted to be able to pick a random element from a list. Seeing that there wasn't any random functionality at all I decided to do my part and add a few functions. It's available at slyons/IntegratedDynamics@0c1afed for your perusal. I tried my best to follow the project coding requirements, but let me know if there's anything I need to add.
rand
-> Random from zero to any number typerand2
-> Random from any number to any number (result is type of the second)randElem
-> Random element from a listrandBool
-> Random booleanabs
-> Absolute value of a number type
@slyons Those definitely look useful! They may need some polishing, but feel free to open a PR for these.
PR in #745.