3 May
2008
3 May
'08
12:12 p.m.
I'm looking for a random distribution which allows me to generate
enums with specified probabilities.
As a simple example I could have:
//The enum.
typedef enum {vt_car, vt_bus, vt_walk, vt_cycle} vehicle_types;
//What I want to generate and the associated probabilities.
boost::array