mirror of
https://github.com/boostorg/poly_collection.git
synced 2026-01-24 06:02:12 +00:00
stylistic
This commit is contained in:
@@ -25,7 +25,7 @@ int main()
|
||||
|
||||
// populate sprs
|
||||
std::mt19937 gen{92748}; // some arbitrary random seed
|
||||
std::discrete_distribution<> rnd({1,1,1});
|
||||
std::discrete_distribution<> rnd{{1,1,1}};
|
||||
for(int i=0;i<4;++i){ // assign each type with 1/3 probability
|
||||
switch(rnd(gen)){
|
||||
case 0: sprs.push_back(std::make_unique<warrior>(i));;break;
|
||||
|
||||
Reference in New Issue
Block a user