result = RndStrong(type, param)
RndStrong()are much more random than those generated by Rnd() or RndF() both of which aren't appropriate for anything cryptography related.
RndStrong() can operate in two different modes: If you pass
will return a single integer value that won't be smaller than 0 and won't be bigger
than the integer passed in
param (but it could be equal to
param). If you pass
RndStrong() will generate a string of
param random bytes, i.e.
param specifies the desired length of the string.
Be warned that
RndStrong() is very slow in comparison to Rnd() and
RndF(). That is why you shouldn't call it too often but rather
cache its results if you need lots of very random numbers. For example, you could
type set to
param to 65536 to make it generate
a string containing 64kb worth of random numbers. Once you've consumed those, you
could call it again for more random numbers.
Also note that on AmigaOS 3.x and AROS
RndStrong() currently falls back to
Rnd() because those operating systems don't offer cryptography-proof
#INTEGERor the length of the string to generate if
num=RndStrong(49)Well, I cannot predict what value
numwill receive. I can only say that it will not be greater than 49 and not smaller than zero.