[Qt-interest] [SOLVED] Re: Best Random Number Generator in Qt

Aaron Lewis aaron.lewis1989 at gmail.com
Fri Apr 16 12:40:40 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/15/2010 09:11 PM, Denis Akhmetzyanov wrote:
> Hi, Tony
> You are right. Of course (max + 1).
> 
> 
> 2010/4/15 Tony Rietwyk <tony.rietwyk at rightsoft.com.au>
> 
>>  Hi Denis,
>>
>> Aaron said he needs 0 to max, so he will have to use  "return qrand() %
>> (max + 1);"

C'est Good , simpler is always better ;-)

Thanks for all your help ;-)


- -- 
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4r0n on freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvIPqgACgkQvf41sEptMqC4jgCgrjT2hw/l1QrTb3kANF1IDtIT
iFQAoK929N7+4DBLm18M5Sv/SwbwmgdF
=+MHL
-----END PGP SIGNATURE-----



More information about the Qt-interest-old mailing list