1234567891011121314151617181920212223242526272829303132333435363738 |
- unit Unit1;
- interface
- uses
- Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
- Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
- type
- TForm1 = class(TForm)
- Button1: TButton;
- Edit1: TEdit;
- Edit2: TEdit;
- Label1: TLabel;
- Label2: TLabel;
- Edit3: TEdit;
- procedure Button1Click(Sender: TObject);
- private
- { Private-Deklarationen }
- public
- { Public-Deklarationen }
- end;
- var
- Form1: TForm1;
- implementation
- uses Math;
- {$R *.dfm}
- procedure TForm1.Button1Click(Sender: TObject);
- begin
- Edit3.Text:=inttostr(RandomRange(strtoint(Edit1.Text),strtoint(Edit2.Text)+1));
- end;
- end.
|