# General

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

remainder of 21 divided by 5 | 1

21 mod 5 | 1

half of 175 | 87.5

midpoint between 150 and 300 | 225

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

Known as the rule of three, these phrases help you find the number required to maintain a proportion.

6 is to 60 as 8 is to what | 80

5 is to 10 as what is to 80 | 40

These phrases also work with units:

5 km is to 500m as 5 cm is to what | 5 mm

30 minutes is to 3 hours as what is to 60 seconds | 10 seconds

Lowest common multiple and greatest common divisor

gcd of 20 and 30 | 10

lcm of 5 and 8 | 40

Last modified 6mo ago