由买买提看人间百态

topics

全部话题 - 话题: rand32
(共0页)
d****v
发帖数: 458
1
来自主题: JobHunting版 - google intern 电面面经
32 bit 就是 31 bit 的数字的2倍啊
a=rand31()
b=rand31()
c=a+b
c is rand32()
s*****i
发帖数: 355
2
来自主题: Quant版 - rand31 -> rand32的问题
这里大牛多,我来问一下。跟那个老题rand5生成rand7类似,我这样写对吗。谢谢
s***t
发帖数: 49
3
来自主题: Quant版 - rand31 -> rand32的问题
I think, here the 31, 32 is the bit number.
If the assumption is that, both of them are uniformly distributed,
I think we can combine two 31bits to one 62bis, and just take 32 of them,
because each bit is uniformly
distributed as well.
(共0页)