Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.
ImCoolYeah105 edited this page Jun 7, 2018 · 4 revisions

Math functions are called with du:math/<function>. Arguments are passed using in_<x> du_data and out_<x> du_data scores.

du:math/pow

in_0: Number to raise to a power

in_1: Power to raise the number to

out_0: in_0^in_1

du:math/abs

in_0: Number to perform function on

out_0: | in_0 |

du:math/random

in_0: Generates up to this number

out_0: random number between 0-in_0.

du:math/random_seeded

Allows use of custom seeds. You will need to keep track of the custom seed manually.

in_0: Generates up to this number

in_1: seed

out_0: random number between 0-in_0.

out_1: new seed

du:math/mod

in_0: number to divide

in_1: divisor

out_0: in_0 % in_1