Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我得到一个自然数 N (0,1,2..),我需要使用掷硬币来获得一个随机数 R,它会出现在 0<=R<=N 的范围内,我想弄清楚有多少折腾我需要让它工作吗?