Random location id generator. More...
Public Member Functions | |
random_location_generator (unsigned int seed=get_location_id(), unsigned int nlocs=get_num_locations()) | |
Constructs a new random_location_generator. More... | |
result_type | operator() (void) |
result_type | min (void) const |
result_type | max (void) const |
Public Types | |
typedef runtime::location_id | result_type |
Random location id generator.
|
explicit |
Constructs a new random_location_generator.
seed | Random number generator seed. |
nlocs | Number of locations. |