HP3000-L Archives

January 2000, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jeff Kell <[log in to unmask]>
Reply To:
Jeff Kell <[log in to unmask]>
Date:
Fri, 14 Jan 2000 10:18:11 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (13 lines)
This 'unique randomization' reminds me (don't laugh too hard) of APL.
It begs for the "?" operator (as I recall).  In unary mode it returned
a random number <= the argument; in binary mode it returned "x" unique
random numbers <= the second argument.  You could then accomplish the
entire dastardly deed by:

   fileEOF?fileEOF

and assigning the resulting vector to a variable.  You now have a
randomized list of record numbers.

How to do FREADDIR's in APL is left as an exercise for the reader :-)

ATOM RSS1 RSS2