In many programming languages (including scripting languages), rand() is the name of a function that returns a random number, usually a floating point number between zero and 1.