用于考试时乱序,相同的试题,但每位考生看到的题序不同。
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Grids;
type
TForm1 = class(TForm)
StringGrid1: TStringGrid;
Button1: TButton;
Button2: TButton;
procedure Button1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
procedure InitValue();
procedure tmprandom();
end;
var
Form1: TForm1;
Array20 : array[1..20] of String;
implementation
{$R *.dfm}
//布局
procedure TForm1.FormCreate(Sender: TObject);
begin
Self.Width := 950