fork(2) download
  1. #include <iostream>
  2. #include <random>
  3.  
  4. int main() {
  5. std::random_device rd;
  6. std::default_random_engine DRE(rd());
  7. std::uniform_int_distribution<> UID('a', 'f');
  8.  
  9. std::cout << static_cast<char>(UID(DRE)) << std::endl;
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 4340KB
stdin
Standard input is empty
stdout
e