主题:[讨论]rand()怎么就不rand呢?
[em14]
这个是我程序运行的结果:
Some randomly distributed integers will be printed.
How many do you want to see?3
346 130 10982
Some randomly distributed integers will be printed.
How many do you want to see?20
346 130 10982 1090 11656 7117 17595
6415 22948 31126 9004 14558 3571 22879
18492 1360 5412 26721 22463 25047
Some randomly distributed integers will be printed.
How many do you want to see?60
346 130 10982 1090 11656 7117 17595
6415 22948 31126 9004 14558 3571 22879
18492 1360 5412 26721 22463 25047 27119
31441 7190 13985 31214 27509 30252 26571
14779 19816 21681 19651 17995 23593 3734
13310 3979 21995 15561 16092 18489 11288
28466 8664 5892 13863 22766 5364 17639
21151 20427 100 25795 8812 15108 12666
12347 19042 19774 9169
Some randomly distributed integers will be printed.
How many do you want to see?20
346 130 10982 1090 11656 7117 17595
6415 22948 31126 9004 14558 3571 22879
18492 1360 5412 26721 22463 25047
Some randomly distributed integers will be printed.
How many do you want to see?20
346 130 10982 1090 11656 7117 17595
6415 22948 31126 9004 14558 3571 22879
18492 1360 5412 26721 22463 25047
怎么每次都一样?
这个是我程序运行的结果:
Some randomly distributed integers will be printed.
How many do you want to see?3
346 130 10982
Some randomly distributed integers will be printed.
How many do you want to see?20
346 130 10982 1090 11656 7117 17595
6415 22948 31126 9004 14558 3571 22879
18492 1360 5412 26721 22463 25047
Some randomly distributed integers will be printed.
How many do you want to see?60
346 130 10982 1090 11656 7117 17595
6415 22948 31126 9004 14558 3571 22879
18492 1360 5412 26721 22463 25047 27119
31441 7190 13985 31214 27509 30252 26571
14779 19816 21681 19651 17995 23593 3734
13310 3979 21995 15561 16092 18489 11288
28466 8664 5892 13863 22766 5364 17639
21151 20427 100 25795 8812 15108 12666
12347 19042 19774 9169
Some randomly distributed integers will be printed.
How many do you want to see?20
346 130 10982 1090 11656 7117 17595
6415 22948 31126 9004 14558 3571 22879
18492 1360 5412 26721 22463 25047
Some randomly distributed integers will be printed.
How many do you want to see?20
346 130 10982 1090 11656 7117 17595
6415 22948 31126 9004 14558 3571 22879
18492 1360 5412 26721 22463 25047
怎么每次都一样?