Re: [請益] 那些語言或程式用上 多核心 CPU
※ 引述《hellfire (小強)》之銘言:
> 好吧
> 那請您告訴我這個簡單的procedure到底會不會停?
一般compiler提供的簡單亂數產生器,原則上都要滿足值空間內任一值出現的機會相等
這些就保證值空間內每一點在有限週期內都會輸出到
你以下又沒有限制說拿到10要故意丟掉不准後面接,當然會停
> 在下資質駑鈍真的想不出來
知道自己駑鈍,就不要侮辱停止問題。
> while (true) {
> int x = get random number from 0 to 100000
> if (x == 10) break;
> }
--
美國戰後戰鬥機發展時程,F-80 - XF-108 : http://blog.bs2.to/post/GOLDMEMBER/8981
The UNIVAC Biblestory : http://blog.bs2.to/post/GOLDMEMBER/9041
The James Bond Superweaponry : http://blog.bs2.to/post/GOLDMEMBER/9002
今日的一言(2/10): 登月演說, 1962 : http://blog.bs2.to/post/GOLDMEMBER/7840
http://blog.bs2.to/GOLDMEMBER 法外科學暨工程顧問公司
--
▄▄▄▄▄▄▄ ▄▄▄▄ ▄▄▄▄▄▄ <telnet://bbs.cs.nctu.edu.tw>
█▄▄▄▄█ █ ▄▄▄▄▄█ Player: GOLDMEMBER
▄█▄▄▄▄█ ▄▄▄█ █▄▄▄▄▄ From: 218-160-87-242.dynamic.hine
☆ 次世代BS2 ☆ 可申請個人板 150MB 相簿 http://pic.bs2.to 交大資訊人 250MB
討論串 (同標題文章)
完整討論串 (本文為第 21 之 30 篇):