Basing an implementation off an LCG would be a smart way to go about it. C's rand() is an LCG.
brogden
2016-08-02 03:26:39 UTC
Comprise #incorporate #incorporate int random() int r; r=rand()%50+1; return r; primary() int a[20]; for(int i=zero;i<=20;i++) a[i]=random(); cout<<"showing teh random numbers"; for(i=zero;i<=20;i++) cout<
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.