Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

# K32GetProcessMemoryInfo

When executing this code:

SRP_Math("RANDOM", NumberRange<1>, NumberRange<2>, 0)

I get this error message:

"procedure entry point K32GetProcessMemoryInfo could not be located in the dynamic link library KERNEL32.DLL"

Is there a way around this. Does OI9 have a random number generator or is the a coding solution.

Need to be able to set a non zero from number

Thanks

## Comments

Unfortunately, older (and unsupported) versions of Windows are missing key functions that many of our products need.

Thanks.

Can you check me on this 'formulae'

NumberFrom = 1001

NumberTo = 3456

Result = Rnd(NumberTo-(NumberFrom-1))+NumberFrom

In OI9, this expression returns random numbers between 1001 and 3457 - implying that RND(n) is

inclusiveof n. This is as documented in the Revelation online help for RND. Although presumably this help is for OI10.However in OI10, this expression returns random numbers between 1001 and 3456 - implying that RND(n) is

exclusiveof n, but as documented for OI9Do you get similar results?

How did you test?

`n = 9999999 f = 0; t = 499 min = (f+t)/2; max = min InitRnd time() For i = 1 to n r = rnd( t-(f-1))+f If r < min then min = r If r > max then max = r Next n Return min: '-': max`

InitRnd Time(): Date()

n = 9999999

NumberFrom = 1001

NumberTo = 3456

Min = NumberTo

Max = NumberFrom

For i = 1 to n

R = Rnd(NumberTo-(NumberFrom-1))+NumberFrom

If r < min then min = r

If r > max then max = r

Next n

Return min: '-': max

When Min=1001 , max=

3457Rnd((NumberTo-(NumberFrom-1))-1)+NumberFrom

`rndRange = NumberTo - NumberFrom If isEngine64() then rndRange += 1 R = Rnd( rndRange) + NumberFrom`