# Random

Any data or information that has no order. For example, 5,8,2,9, and 0 are single-digit numbers that are in **random** order. Data that is random can be sorted by date, name, time, age, etc.

Data can be randomly selected or random numbers can be generated using a random seed. Computer games, web pages, programs, and encryption are just a few examples of what needs random values to operate. For example, Computer Hope has a random dictionary definition script that randomly selects and opens a random dictionary page for Computer Hope users.

## Random number in programming

In programming languages, there is often a command, function, or random number generator (**rng**) that allows the developer to generate a **random number**. For example, in Perl the programmer could use **rand** to generate a random number. Below is an example of generating a random whole number in Perl.

my $random = int(rand(10));

print "Random number between 0 and 10: $random\n";

In the above example, the $random variable is assigned a random whole number between zero and ten and then prints that random number.

## Random number in Excel

You can create a random number in excel by using the **rand** or **randbetween** function. See our Excel formula page for help with these functions and examples.