there is function which produces a float number between 0 and 1 till 16 places.I was supposed to make random integer number generator.
S*P
2 楼
CCTV上的太卡了, 没法看。
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.
【在 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.
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"?
l*n
7 楼
the true random number generator does generate more than 16 digits, see http otherwise, just update the module parameter