| Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link Back |
Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
Randomize |
unit |
| System | |
| category | |
| random number |
| declaration |
| description |
Do not call the Randomize in a loop with calls to the Random function. Randomize should called only once, before any calls to functions that return rundom numbers.
| example |
Randomize; ShowMessage(Random); //will show a random number between 0 and 1 |
| in real code |
| see also |
| Free Delphi code snippet inside every Delphi Newsletter! |
|
|
| Got some code to share? Got a question? Need some help? |
|
|

