📜  delphi 基础生成随机数 - Delphi 代码示例

📅  最后修改于: 2022-03-11 14:54:56.434000             🧑  作者: Mango

代码示例1
// 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;