... rand 出來的結果是 0.5312479312,再調用 round,出來的結果是浮點數 1.0 而非整數 1,此時用 xor 針對該浮點數做運算勢必造成錯誤之結果,起因乃 ...
tw.knowledge.yahoo.com