Integrated Dynamics

Integrated Dynamics

63M Downloads

Random number, Random List element, Absolute

slyons opened this issue · 2 comments

commented

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 type
  • rand2 -> Random from any number to any number (result is type of the second)
  • randElem -> Random element from a list
  • randBool -> Random boolean
  • abs -> Absolute value of a number type
commented

@slyons Those definitely look useful! They may need some polishing, but feel free to open a PR for these.

commented

PR in #745.