In this snippet, look at how to get a random integer between two numbers.

# Math Related

## Check if the given number is even

Check whether a number is odd or even using the modulo (%) operator. Return true if the number is even, false if the number is odd.

## Check if the given number is odd

Check whether a number is odd or even using the modulo (%) operator. Return true if the number is odd, false if the number is even.

## Calculate the nth root of a given number

Use Math.pow() to calculate x to the power of 1/n which is equal to the nth root of x.

## Convert a value to a safe integer

Use Math.max() and Math.min() to find the closest safe value. Use Math.round() to convert to an integer.

## Distance Speed Time

Calculate the time, distance, or speed given any two of the pieces of information. Convenient!

## Amazing Quadratic Equation Solver

This script will factor and solve for both values of X, any quadratic equation that has real number solutions.

## Roman Numeral Converter 2

This script will convert whole numbers to Roman numerals, up to 3,999,999. Easy to use.

## Metric BMI Calculator

Use this script to calculate your BMI (Body Mass Index). Measurements are computed using the metric system. A perfect addition for a health Web site.

## Astrological Calculator

A handy calculator that will calculate both your Western and Chinese birth Signs.