delphi basics generating random number

Solutions on MaxInterview for delphi basics generating random number by the best coders in the world

showing results for - "delphi basics generating random number"
Leyna
02 May 2020
1  // Get an integer random number in the range 1..100
2  for i := 1 to 5 do
3  begin
4    int := 1 + Random(100);    // The 100 value gives a range 0..99
5    ShowMessage('int = '+IntToStr(int));
6  end;
7end;