Answers for "delphi basics generating random number"

1

delphi basics generating random number

// 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;
Posted by: Guest on September-17-2020

Code answers related to "delphi basics generating random number"

Browse Popular Code Answers by Language