View difference between Paste ID: 2NqWPVP9 and gamFaCBE
SHOW: | | - or go back to the newest paste.
1-
//10/18: �i�u�����Ͷü�, use for
1+
2
#include <iomanip>
3
#include <stdlib.h>
4
#include <time.h>
5
6
using namespace std ;
7
8
int main() {
9
    float num1;
10
    srand(time(NULL));
11
    cout << "產生一個介於[0,54.00]"<<endl;
12-
    cout << "���ͤ@�Ӥ���[0,5.00]����"<<endl;
12+
    num1=(rand()% 5401);
13-
    num1=(rand()% 501);
13+
14
    cout << num1<<endl;
15
          
16
       
17
    return 0;
18
}