程式說明:由特定鍵值(Key)配合C語言中的srand()、rand()凾式達到生成特定亂數值的結果。
以下為執行步驟:
- 開啟程式Project1.exe
- 輸入Key值
- 點選"Rand",將依序rand出A、B、C三個值
執行數據:
鍵值 | A | B | C |
---|---|---|---|
5 | 32036 | 21622 | 27059 |
131 | 4862 | 12702 | 25882 |
13 | 30310 | 10132 | 13461 |
由執行數據可以得知,相同的鍵值會在相同的次序時rand出一樣的值。
鍵值 | A | B | C |
---|---|---|---|
5 | 32036 | 21622 | 27059 |
131 | 4862 | 12702 | 25882 |
13 | 30310 | 10132 | 13461 |
1 則留言:
Infatuation casinos? indorse this advanced [url=http://www.realcazinoz.com]casino[/url] advisor and wing it confine online casino games like slots, blackjack, roulette, baccarat and more at www.realcazinoz.com .
you can also deter our untrained [url=http://freecasinogames2010.webs.com]casino[/url] over and above of skin unlikely suppress at http://freecasinogames2010.webs.com and about poop bucks !
another late-model [url=http://www.ttittancasino.com]casino spiele[/url] purlieus is www.ttittancasino.com , in proffer german gamblers, flyover manumitted online casino bonus.
張貼留言