🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #217

Re: help with Random class

#217
From: Steve Brailsford
Date: Fri, 04 Sep 1992 14:57
20 lines
1334 bytes
fsb@sparc.vitro.com (Steve Brailsford) writes:

>I see there is some kind of random number generator class
>in g++ lib.  Can someone give me an example on how to use it?
>It'd like say a random number between 10 and 20.  I think there
>is a way to get it to do that, but haven't figured out how.
>I wish there were some examples in the comments or something.
>Man pages would be nice too. :-)

To answer my own question, I have found some examples in the
libg++ test directory.  The one in particular that applies here is
tRandom.cc
I see now it needs a distribution function and what functions are
available.  Pretty neat.  These classes still need man pages. :-)

--
    Steve Brailsford (fsb@sparc.vitro.com)   _____
    Usenet:  uupsi!vitro!sparc!fsb         \/itro Corporation
    Voice:  (301) 231-1481                  14000 Georgia Ave.
    Fax:    (301) 231-2020                  Silver Spring, MD 20906
Technical Details
Message-ID: <fsb.715618647@sparc>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!rpi!newsserver.pixel.kodak.com!psinntp!vitro.com!v7.vitro.com!sparc!fsb
References: <fsb.715526162@sparc>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!rpi!newsserver.pixel.kodak.com!psinntp!vitro.com!v7.vitro.com!sparc!fsb
Newsgroups: gnu.g++.help
Subject: Re: help with Random class
Message-ID: <fsb.715618647@sparc>
From: fsb@sparc.vitro.com (Steve Brailsford)
Date: 4 Sep 92 14:57:27 GMT
References: <fsb.715526162@sparc>
Keywords: random numbers
Nntp-Posting-Host: sparc.vitro.com
Lines: 20