procedure TForm1.Button1Click(Sender: TObject); var i:integer; begin randomize; for i:=1 to 6 do memo1.Lines.Add(inttostr(random(33))); end;