example01.cpp ----------------------------------------------- #include #include #include using namespace std; int main() { int i, r; srand(time(0)); for (int i = 0; i < 5; i++){ r = rand(); cout << r << "\t" << r%10 << endl; } return 0; }