# Maths Helper Algorithms

- [Pseudorandom Number Generator](/wasm/maths-algorithms/pseudorandom-number-generator.md): https://en.wikipedia.org/wiki/Linear\_congruential\_generator
- [Factorial](/wasm/maths-algorithms/factorial.md)
- [Dist](/wasm/maths-algorithms/distance-function.md): Gets the distance between points.
- [Map](/wasm/maths-algorithms/map.md): Takes x and scales it from one range to another range.
- [Fract](/wasm/maths-algorithms/fract.md): Returns the fractional part  of x.
- [RemF or ModF](/wasm/maths-algorithms/remf-or-modf.md): Gets the modulus of a f32
- [Round](/wasm/maths-algorithms/round.md): Rounds to the nearest whole number. 0.5 is rounded up.
- [Clamp](/wasm/maths-algorithms/clamp.md): Forces x to be between or the min and max range.
- [Mix](/wasm/maths-algorithms/mix.md): Interpolate between x and y using a.
- [Pow](/wasm/maths-algorithms/pow.md): Returns x to the power of y.
- [Approx Sin](/wasm/maths-algorithms/aprox-sin.md): Returns sin
- [Approx Cos](/wasm/maths-algorithms/aprox-cos.md): Returns cos
- [Approx Tan](/wasm/maths-algorithms/approx-tan.md): Returns Tan
- [ToRad and ToDeg](/wasm/maths-algorithms/torad-and-todeg.md): Converts between radients and degrees.
