Created
July 8, 2012 22:28
-
-
Save flyx/3073170 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with Ada.Text_IO; | |
with Ada.Numerics.Discrete_Random; | |
procedure Test is | |
subtype Random_Range is Integer range -10 .. 10; | |
package Random_X is new Ada.Numerics.Discrete_Random(Random_Range); | |
use Random_X; | |
Gen : Generator; | |
begin | |
loop | |
Reset (Gen); | |
Ada.Text_IO.Put_Line (Random (Gen)'Img); | |
end loop; | |
end Test; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment