Hi I am just wondering.. how to store randomized number and add to it next randomized number and so on?
Let's say I have a function
I click button and and it randomizes number from 1 to 6 and shows in Label1
I click the same button and it randomizes new number then it add to last randomized number and shows in Label1 and so on
The code is not tested I write it from my memory.
procedure TForm1.btnRollClick(Sender: TObject);
var
rand1 : Integer;
begin
Randomize;
rand1 := Random(6);
Label1.Caption := IntToStr( rand1);
end;
Thanks