Random number generator (device): Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: removed OVERFLOW from PRE html tag.)
(→‎{{header|C++}}: Removed unnecessary string header, changed int distribution to long so it actually is guaranteed to be 32-bit.)
Line 127:
{{works with|C++11}}
<lang cpp>#include <iostream>
#include <string>
#include <random>
Line 133 ⟶ 132:
{
std::random_device rd;
std::uniform_int_distribution<intlong> dist; // long is guaranteed to be 32 bits
std::cout << "Random Number: " << dist(rd) << std::endl;