Try this without initializing the Random-Generator:
For j = 1 To 10000000
r = Rand(1,10)
If r < 1 Or r > 10 Then Notify j + ": " + r: End
Next
Notify "No Rand-Error!"
In the 9216592th execution of the loop the random value will be 11 ! That can seriously harm programs that use rand() intensively.
best regards,
Mimi
For j = 1 To 10000000
r = Rand(1,10)
If r < 1 Or r > 10 Then Notify j + ": " + r: End
Next
Notify "No Rand-Error!"
In the 9216592th execution of the loop the random value will be 11 ! That can seriously harm programs that use rand() intensively.
best regards,
Mimi