Answers for "c++ random number generator uniform distribution"

C++
0

c++ random number generator uniform distribution

#include<bits/stdc++.h>
using namespace std ;
default_random_engine seed;
int main()
{
    

    for(int i= 10;i>0;i--)
     cout<<uniform_int_distribution<int>(0, i)(seed)<<" ";
    return 0 ;
}
Posted by: Guest on July-20-2021

Code answers related to "c++ random number generator uniform distribution"

Browse Popular Code Answers by Language