#include <iostream.h>
#include "Random.h"
#include "CPUTimer.h"

const int flips_per_test = 10000;

int main(void)
{
  Random r;
  AutoCPUTimer at;
  for (int j = 1; j <= 20; j++) {
    int x = 0;
    for (int i = 1; i <= flips_per_test; i++) {
      x += r.get_rand(0,1);
    }
    cout << x << " tails from " << flips_per_test << " flips." << endl;
  }
  return 0;
}
