The objectives of this task are two-fold:
- To better to understand random integer and random number generation.
- To better understand Monte Carlo simulation through the generation of customer random service \ times according to certain probabilities.
- sim.c : source code for sim
- sim.exe : compile code
- Makefile : config to help compile, test, clean (working dir) and run codes
- test.sh : simple script to test codes and report errors
- results.doc : simulation results
- Clone repo via ssh (git clone https://github.com/Codexgrey/RNG-cmpe485)
- Depending on your environment, use Makefile as follows;
- $
mingw32-make test
- OR
- $
make test
- $
mingw32-make run
- OR
- $
make run
- $
mingw32-make clean
- OR
- $
make clean
- $
touch results.doc
- $
gcc sim.c -o sim
- $
./sim >> results.doc