The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Has the behaviour of rnd() changed in 7.x?
Posted: 21 Nov 07 10:08 AM
|
I'm not sure if the behaviour here has changed since our upgrade from 6.2.2 to 7.2.1, but something weird is going on with a random password generator script.
I have a simple line of code to contribute a number to a generated password (it's on the Contact Detail view's onChange method)
'if password is blank then ' ... strPasswordPart3 = CInt(999 * Rnd() + 1) ' ... 'end if
But from HISTORY I've noticed that it's been using the number 580 for the last few hundred passwords.
I've now added Randomize before the call to rnd(), but I don't think I had to do this before.
'if password is blank then ' ... Randomize strPasswordPart3 = CInt(999 * Rnd() + 1) ' ... 'end if
Very odd. |
|
|
| |
| |
| |
|