2008年8月21日 星期四

[專題]亂數生成程式

RandomTest 程式 程式下載(含BCB專案原始碼)

程式說明:由特定鍵值(Key)配合C語言中的srand()rand()凾式達到生成特定亂數值的結果。



以下為執行步驟:
  • 開啟程式Project1.exe
  • 輸入Key值
  • 點選"Rand",將依序rand出A、B、C三個值


執行數據:







鍵值ABC
5320362162227059
13148621270225882
13303101013213461



由執行數據可以得知,相同的鍵值會在相同的次序時rand出一樣的值。

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.