2 -- { dg-options "-gnatws -gnata" }
4 with GNAT
.Random_Numbers
;
8 Gen
: GNAT
.Random_Numbers
.Generator
;
10 function Random
return Long_Long_Integer is
11 Rand
: Integer := GNAT
.Random_Numbers
.Random
(Gen
);
13 return Long_Long_Integer(Rand
);
16 type Values
is range 1 .. 4;
18 Seq_LLI
: array (Values
) of Long_Long_Integer := (others => Random
);
19 Seq_I
: array (Values
) of Integer := (others => Integer(Random
));
22 -- Verify that there is at least two different entries in each.
24 pragma Assert
(For some E
of Seq_LLI
=> E
/= Seq_LLI
(Values
'First));
25 pragma Assert
(For some E
of Seq_I
=> E
/= Seq_I
(Values
'First));