Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Function RanLL(ix As Long) As Double
  2. Dim k1 As Long
  3. ' Genera una variable uniforme RanLL entre 0 y 1 con semilla ix
  4. k1 = ix / 127773
  5. ix = 16807 * (ix - k1 * 127773) - k1 * 2836
  6. If (ix < 0) Then
  7. ix = ix + 2147483647
  8. End If
  9. RanLL = ix * 4.65661287E-10
  10. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement