Sortear... ? Nao REPETIR !

Delphi

16/07/2003

Como fazer com esta procedure abaixo...para não poder repetir o mesmo número a se sorter ?

procedure TForm.BotaoClick(Sender: TObject);
begin
randomize;
Label.caption:=inttostr(random(x));
end;

Rodrigo!


Ropesca

Ropesca

Curtidas 0

Respostas

Rômulo Barros

Rômulo Barros

16/07/2003

procedure TForm.BotaoClick(Sender: TObject);
begin
Randomize;
Label1.Caption:=IntToStr(RandomRange(1,100));// Valores entre 1 e 100

end;


GOSTEI 0
POSTAR