General Phase Functions

Comparing numbers

min() and max() in Soulver

larger of 100 and 200 | 200
greater of 100 and 200 | 200
|
smaller of 5 and 10 | 5
lesser of 5 and 10 | 5

Remainders (mod)

remainder of 21 divided by 5 | 1
21 mod 5 | 1

Middles and halves

half of 175 | 87.5
midpoint between 150 and 300 | 225

Random Numbers

To generate a random integer in a specified range:

random number between 1 and 10 | 7

To generate a random floating point number, use the range 0 to 1

random number between 0 and 1 | 0.4793193723