Ideone.com requires JavaScript to work.
fork(53) download loading...
  1. #include <iostream>
  2. #include <random>
  3. int main()
  4. {
  5. std::mt19937 rng(631647094);
  6. std::uniform_int_distribution<char> dist('a', 'z' + 1);
  7. char alpha;
  8. while ((alpha = dist(rng)) != 'z' + 1)
  9. {
  10. std::cout << alpha;
  11. }
  12. }
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8cmFuZG9tPgoKaW50IG1haW4oKQp7CiAgICBzdGQ6Om10MTk5Mzcgcm5nKDYzMTY0NzA5NCk7CiAgICBzdGQ6OnVuaWZvcm1faW50X2Rpc3RyaWJ1dGlvbjxjaGFyPiBkaXN0KCdhJywgJ3onICsgMSk7CgogICAgY2hhciBhbHBoYTsKICAgIHdoaWxlICgoYWxwaGEgPSBkaXN0KHJuZykpICE9ICd6JyArIDEpCiAgICB7CiAgICAgICAgc3RkOjpjb3V0IDw8IGFscGhhOwogICAgfQp9Cg==
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
shannon
https://ideone.com/JRGb3l
language:
C++14 (gcc 8.3)
created:
12 years ago
visibility:
public

Share or Embed source code

Discover > Sphere Engine API

The brand new service which powers Ideone!

Discover > IDE Widget

Widget for compiling and running the source code in a web browser!

AltStyle によって変換されたページ (->オリジナル) /