# include # include "vector.h" # include "vector.c" # include "random.h" # include "random.C" random rand; vector weights(3); main() { weights[0] = 65; weights[1] = 25; weights[2] = 10; for (int j = 0; j < 10; j++) cout << rand.weightedDiscrete(weights) << "\n"; }