home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / g / help / 1197 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!newsserver.pixel.kodak.com!psinntp!vitro.com!v7.vitro.com!sparc!fsb
  2. Newsgroups: gnu.g++.help
  3. Subject: Re: help with Random class
  4. Message-ID: <fsb.715618647@sparc>
  5. From: fsb@sparc.vitro.com (Steve Brailsford)
  6. Date: 4 Sep 92 14:57:27 GMT
  7. References: <fsb.715526162@sparc>
  8. Keywords: random numbers
  9. Nntp-Posting-Host: sparc.vitro.com
  10. Lines: 20
  11.  
  12. fsb@sparc.vitro.com (Steve Brailsford) writes:
  13.  
  14. >I see there is some kind of random number generator class
  15. >in g++ lib.  Can someone give me an example on how to use it?
  16. >It'd like say a random number between 10 and 20.  I think there
  17. >is a way to get it to do that, but haven't figured out how.
  18. >I wish there were some examples in the comments or something.
  19. >Man pages would be nice too. :-)
  20.  
  21. To answer my own question, I have found some examples in the
  22. libg++ test directory.  The one in particular that applies here is
  23. tRandom.cc
  24. I see now it needs a distribution function and what functions are
  25. available.  Pretty neat.  These classes still need man pages. :-)
  26.  
  27. --
  28.     Steve Brailsford (fsb@sparc.vitro.com)   _____
  29.     Usenet:  uupsi!vitro!sparc!fsb         \/itro Corporation
  30.     Voice:  (301) 231-1481                  14000 Georgia Ave.
  31.     Fax:    (301) 231-2020                  Silver Spring, MD 20906
  32.