16,556
社区成员
发帖
与我相关
我的任务
分享
Function updateState() As Integer
Dim _adder As Integer
Dim _multiper As Integer
Dim _state As Integer
_adder = 2059198199
_multiper = 1501
_state = Not (_state)
_state += _adder
Dim l1 As Long = System.Math.BigMul(_state, _multiper)
Dim l2 As Long = &HFFFFFFFFL
l1 = l1 And l2
l1 = &HFFFFFFFF - l1
l1 = l1 And &HFFFFFFFFL
_state = l1
_state = (_state Xor (_state >> 16))
Return _state
End Function
int _adder = 2059198199;
int _multiper = 1501;
int _state = 0;
_state = (~(_state) + _adder) * (_multiper);
_state = (_state ^ (_state >> 16));
Function updateState() As Integer
Dim _adder As Integer
Dim _multiper As Integer
Dim _state As Integer
_state = ((Not (_state) + 1 + _adder) * _multiper)
_state = (_state Xor (_state >> 16))
Return _state
End Function