Simulations and Modelling with the RAND() Function

Lemonade Stall

The RAND() function can be used in simulations where the value returned represents an approximation of an event in the real world. For example, we might simulate the sales made by a lemonade stall in a street somewhere. The things we need to model in this case include:

One possible model might look like this:

The details are as follows:

The most complicated thing here is the IF statement. This examines the temperature and determines the probability of drink sales according to the value recorded - the higher the temperature the more likely a sale.

The model shown here represents just one way to set up the simulation for drinks sales, there are many other possible designs. The precise way in which values are calculated depends on decisions made by the modeller.

Press the Back Button to return