home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2597 < prev    next >
Internet Message Format  |  1991-01-22  |  881b

  1. From: allbery@NCoast.ORG (Brandon S. Allbery KB8JRR)
  2. Newsgroups: alt.sources
  3. Subject: Re: VI SOLVES MAZE (update)
  4. Message-ID: <1991Jan21.014749.24589@NCoast.ORG>
  5. Date: 21 Jan 91 01:47:49 GMT
  6.  
  7. As quoted from <1991Jan15.152101.2935@mdivax1.uucp> by :
  8. +---------------
  9. | also, let's make the change between 27 and 11 (or whatever) automatic.
  10. |     |6<<8*sizeof(int)-5<rand()||!C&!Z?J[M[E]=M[A]]=E,J[M[A]=A-Z]=A,"_.":" |"];}
  11. +---------------
  12.  
  13. It's not conditional on sizeof (int), it's conditional on the number of bits
  14. returned by rand().  On my SVR3.1 at work, we have 32-bit ints, but rand()
  15. only returns 15 random bits.
  16.  
  17. ++Brandon
  18. -- 
  19. Me: Brandon S. Allbery                VHF/UHF: KB8JRR on 220, 2m, 440
  20. Internet: allbery@NCoast.ORG            Packet: KB8JRR @ WA8BXN
  21. America OnLine: KB8JRR                AMPR: KB8JRR.AmPR.ORG [44.70.4.88]
  22. uunet!usenet.ins.cwru.edu!ncoast!allbery    Delphi: ALLBERY
  23.