Source code

BCNN is full of examples showing how to model discrete-event systems in different computer languages. To supplement this presentation, we provide here some of the software used to develop the examples, and software that can be used to address some of the exercise problems .

- Excel spreadsheets . This is a zip file. The examples use Visual Basic's native random number generator, and do not execute on anything but versions of Excel running under Microsoft Windows that support VB. Unfortunately, the Mac version of Office 2008 does not support VB and there is no indication that it ever will.
Included are spreadsheets that perform

- Quantile computations
- Queuing Formulas
- Random number generation,
- Simulation Tools described in this user manual
- Example of spreadsheets supporting Chapters 11 and 12 that compute the size of a data sample, a confidence interval, and selection of the best system.

- Spreadsheet examples from Chapter 2.

- Examples 4.2 and 4.6 from Chapter 4.

- Professor Steve Park (deceased) of the College and William and Mary developed code for use in the simulation courses he taught. They are provided here in the C language.
- cgu.cc contains routines for generating continuous random variables from the Uniform, Exponential, Erlang, Normal, Gauss, Lognormal, Chisquare, and Student distributions.
- dgu.cc contains routines for generating discrete random variables from the Bernoulli, Binomial, Equilikely, Geometric, and Pascal distributions.
- dfu.cc contains routines for computing the cummulative, mass (or density), and inverse cummulative distribution functions for all the distributions above.
- rng.cc contains routines for initializing and calling a random number stream.
- rng.zip is a zip archive of the four files listed above.