Redian新闻
>
请问youtube上有春晚的录像吗?
avatar
请问youtube上有春晚的录像吗?# TVChinese - 中文电视
e*e
1
there is function which produces a float number between 0 and 1 till 16
places.I was supposed to make random integer number generator.
avatar
S*P
2
CCTV上的太卡了, 没法看。
avatar
C*y
3
My solution:
1. transform the function into a 0/1 generator: if <0.5, output 0, otherwise
, output 1
2. call the 0/1 generator 32 times, once for one bit of the integer

【在 e*****e 的大作中提到】
: there is function which produces a float number between 0 and 1 till 16
: places.I was supposed to make random integer number generator.

avatar
g*s
5
what is "till 16 places"?

【在 e*****e 的大作中提到】
: there is function which produces a float number between 0 and 1 till 16
: places.I was supposed to make random integer number generator.

avatar
e*e
6
like 0.0000000000001?
16 digits after the dot?
The only solution i have is similar like the previous one <0.5 for 0, or <0
.5 for 1

【在 g*********s 的大作中提到】
: what is "till 16 places"?
avatar
l*n
7
the true random number generator does generate more than 16 digits, see http
otherwise, just update the module parameter
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。