#include<iostream> #include<time.h> #include<cstdio> #include<stdlib.h> using namespace std; int main() { freopen("random.txt","w",stdout); long long a,b,n,cou;//cou:數據個數; cin>>a>>b>>cou; srand(time(NULL)); for(long long i=1;i<=cou;i++) { n=rand()%(b-a+1)+a; cout<<n<<' '; } return 0; }