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 04:56 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz