Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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 ;
}
 
PREVIOUS NEXT
Tagged: #random #number #generator #uniform #distribution
ADD COMMENT
Topic
Name
2+2 =