DP News-Robot |
7. Okt 2014 06:20 |
Delphi: RandomizeIfNeeded
Calling Randomize too often can make your Random numbers even less random. Sometimes having the Randomize call in a unit initialization section is not practical. Hence this little method that I think I first wrote back in the Turbo Pascal days: procedure RandomizeIfNeeded(); begin if RandSeed = 0 ... http://feeds.feedburner.com/~r/delph...~4/12hbg7Pk5tg
More...
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 07:17 Uhr. |
|
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz