From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a1dc3494658b6e5c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-09-10 12:27:38 PST Path: supernews.google.com!sn-xit-02!sn-east!supernews.com!news-feed.riddles.org.uk!nntp.cs.ubc.ca!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.slurp.net!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Discrete random References: <39BBD440.6E19616@netcourrier.com> Organization: Multimedia X-Newsreader: trn 4.0-test72 (19 April 1999) From: cts@kampong.aedinc.net ((null)) Message-ID: Date: Sun, 10 Sep 2000 19:19:05 GMT NNTP-Posting-Host: 208.4.231.188 X-Trace: newsfeed.slurp.net 968613545 208.4.231.188 (Sun, 10 Sep 2000 14:19:05 CDT) NNTP-Posting-Date: Sun, 10 Sep 2000 14:19:05 CDT Xref: supernews.google.com comp.lang.ada:577 Date: 2000-09-10T19:19:05+00:00 List-Id: In article <39BBD440.6E19616@netcourrier.com>, Mathias Dolidon wrote: >Look at this code : > >with ada.numerics; >procedure ess is >package pnh is new ada.numerics.discrete_random(positive); > >... > >At compile time, GNAT answers there's no 'discrete_random' package in >'ada.numerics', but the reference manual specifies it. Where is the >matter ? Discrete_Random is a generic package. You have to first instantiate a package from the Discrete_Random Package with some discrete type. For instance for an integer random number generator you would instantiate something like- package Random_Integer is new Ada.Numerics.Discrete_Random (Integer); The ARM has a couple of good examples A.5.2. -- ======================================================================= Life is short. | Craig Spannring Bike hard, ski fast. | cts@internetcds.com --------------------------------+------------------------------------