![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
sci.crypt archive63/64 bit version of Delphi's function random( aRange : integer ) : integer; ?
From: Dr John Stockton <jrs@merlyn.demon.co.uk>
Date: Sat Apr 29 2006 - 00:15:42 CEST
JRS: In article <4451913f$0$501$61c65585@uq-127creek-reader-03.brisbane
Random(N), IIRC, produces in the range 0 to N-1. Therefore, ISTM, your
There's no need to go to the expense of * and + if the components are
That also eliminates some range/overflow checking, which saves time and
SF is kill-ruled here.
-- © John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Delphi 3 Turnpike 4 © <URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links; <URL:http://www.bancoems.com/CompLangPascalDelphiMisc-MiniFAQ.htm> clpdmFAQ; <URL:http://www.borland.com/newsgroups/guide.html> news:borland.* GuidelinesReceived on Mon May 1 02:05:52 2006 |