In this article let’s discuss about Delphi basics generating random number. Let’s go through the following methods without any delay 🙂
// Get an integer random number in the range 1..100 for i := 1 to 5 do begin int := 1 + Random(100); // The 100 value gives a range 0..99 ShowMessage('int = '+IntToStr(int)); end; end;
Hope the above methods works for you. Happy Learning and get back to us Anytime.
Realted Posts : How to get current date delphi