there is no proved real random generator algorithm

來源: 德州老外 2006-12-01 14:48:42 [] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (386 bytes)
Only sudo-random generator is available. 5000 non-repeating is not difficult.

If user is really not satisfied with general rand(), then use rand(timestamp) to generate a seed, and use CBC encryption to generate rest of numbers. Again the algorithm doesn't guarantee you anything, but you can use a silly search to find if there is any duplicated number. 5000 is not a big data.

所有跟帖: 

Why you two are so serious about this. I was just -ppzcgg- 給 ppzcgg 發送悄悄話 ppzcgg 的博客首頁 (87 bytes) () 12/01/2006 postreply 19:48:52

請您先登陸,再發跟帖!

發現Adblock插件

如要繼續瀏覽
請支持本站 請務必在本站關閉/移除任何Adblock

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”