# Computer Languages to Generate Random Numbers

Most computer languages include a function that can be used to generate random numbers. In Excel, the RAND function can be used to generate random numbers between 0 and 1. If we let x denote a random number generated using RAND, then x is a continuous random variable with the following probability density function:

f(x) = {1 for 0 ≤ x ≤ 1

0 elsewhere

a. Graph the probability of generating a random number between .25 and .75?

b. What is the probability of generating a random number with a value less than or equal to .30?

c. What is the probability of generating a random number with a value greater than .60?

e. Generate 50 random numbers by entering =RAND() into 50 cells of an Excel worksheet.

© BrainMass Inc. brainmass.com October 9, 2019, 11:11 pm ad1c9bdddfhttps://brainmass.com/statistics/probability/computer-languages-generate-random-numbers-247557

#### Solution Summary

This solution determines the probability that a computer language would be able to generate random numbers from a probability density function.