Skip to content

Instantly share code, notes, and snippets.

@MikeLing
Created July 20, 2017 14:16
Show Gist options
  • Save MikeLing/12cf9254248e9ce49d343f297e920e1e to your computer and use it in GitHub Desktop.
Save MikeLing/12cf9254248e9ce49d343f297e920e1e to your computer and use it in GitHub Desktop.
#include <iostream>
#include <random>
int main()
{
std::mt19937_64 rng(100);
std::uniform_int_distribution<int32_t > d(1,100);
for(int32_t i=0 ; i<15; i++)
{
std::cout << d(rng) << std::endl;
}
}
@MikeLing
Copy link
Author

1212

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment