David,

Your approach seems to have worked for me, too, except the format on
Mac OS X for head seems different.

   SEED =: 2!:0 'head -c 8 /dev/random'
   256 #. x: a.i. SEED
12176610900634073815


   SEED =: 2!:0 'head --bytes=8 /dev/random'
head: illegal option -- -
usage: head [-n lines | -c bytes] [file ...]
|interface error
|   SEED=:    2!:0'head --bytes=8 /dev/random'


On Wed, Mar 13, 2013 at 10:50 AM, David Ward Lambert
<[email protected]> wrote:
>    NB. This trick works for me:
>
>    SEED =: 2!:0 'head --bytes=8 /dev/random'
>
>    256 #. x: a.i. SEED
> 6185367602794180201
>

-- 
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to