Okay !
But Lazaraus is very "strange" programming language. Because of your idea is correct. But my problem is that : why not say List index of bound or else run or debug error, else sisegv.
Second problem :
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
ExtCtrls, Grids, Math;
type
{ TForm1 }
TForm1 = class(TForm)
StringGrid1: TStringGrid;
Timer1: TTimer;
procedure Timer1Timer(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
megosztas : array[1..1000000] of int64;
end;
var
Form1: TForm1;
felhasznalo : integer = 1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.Timer1Timer(Sender: TObject);
begin
if felhasznalo >= 1000000 then exit;
felhasznalo := felhasznalo + 1;
megosztas[felhasznalo] := randomrange(1, 1000000000);
stringgrid1.RowCount:= felhasznalo + 1;
stringgrid1.Cells[1, felhasznalo] := inttostr(megosztas[felhasznalo]);
end;
end.
Timer1.interval = 1000;
Work, but very slow in 32 bit.