added /math/rand endpoints