Skip asked how to find rand11 in the J system. I would either use dirss,
e.g.

   'rand11' dirss '~addons'
/home/chris/j8/addons/stats/base/random.ijs (2)
 interval (0,1) NB.*rand11 v      generate y rando
s in interval (0,1) rand11=: <: @: +: @: rand01  N

or menu Edit|Find in Files with the same result. Find in Files does require
that folder names be set up for locations where you want to search, e.g.
define Addons as the addons directory, or the addons svn if you have that
available.


On Wed, Nov 1, 2017 at 12:29 PM, 'Skip Cave' via Programming <
programm...@jsoftware.com> wrote:

> Raul said: "It might be reasonable to expect someone to use
> code.jsoftware.com to
> see jsoftware code?
> ​"
>
> It might be reasonable to expect that knowledge for someone who is
> intimately familiar with the structure of ​the multiple Jsoftware
> websites/wikis, but not to the average new user or curious explorer. Even
> if the user figures out that there are other websites associated with the
> Jsoftware site but not covered by the main search engine, then finds the
> second code website, and finds the rand11 description, the only clue to the
> rand11 code's whereabouts is the cryptic psuedo-path "
> Addons/stats/base/random
> ​" with no indication whether this path is somewhere on the website, or
> elsewhere.  Not very helpful except for very experienced ​and knowledgable
> J experts.
>
> Skip
>
> Skip Cave
> Cave Consulting LLC
>
> On Wed, Nov 1, 2017 at 2:07 PM, Raul Miller <rauldmil...@gmail.com> wrote:
>
> > Searching on code.jsoftware.com instead of just jsoftware.com gives
> > better results.
> >
> > Specifically, it tells me that rand11 comes from 'stats/base/random'
> > (or I can just load 'stats/base' - if you open 'stats/base' you'll see
> > why). Once loaded, I can type rand11 into the session and it will show
> > me the definition.
> >
> > It might be reasonable to expect someone to use code.jsoftware.com to
> > see jsoftware code?
> >
> > FYI,
> >
> > --
> > Raul
> >
> >
> > On Wed, Nov 1, 2017 at 1:48 AM, 'Skip Cave' via Programming
> > <programm...@jsoftware.com> wrote:
> > > The test:
> > > 1. Browse to jsoftware.com
> > > 2. Type "rand11" in the main search bar
> > > 3. I get 2 semi-useful results:
> > >
> > > random <http://qymjdgu.jsoftware.com/docs/help602/user/script_
> random.htm
> > >
> > > qymjdgu.jsoftware.com/docs/help602/user/script_random.htm
> > > <https://www.google.com/search?q=rand11&sitesearch=
> > jsoftware.com&btnG=Search#>
> > >
> > >    1.
> > >    <http://webcache.googleusercontent.com/search?
> > q=cache:wcdyB688qv0J:qymjdgu.jsoftware.com/docs/help602/
> > user/script_random.htm+&cd=1&hl=en&ct=clnk&gl=us>
> > >
> > > randomize, verb, sets a random value into random link. rand01, verb,
> > > generate y random numbers in interval (0,1). rand11, verb, generate y
> > > random numbers in ...
> > > Definition Summaries - Jsoftware
> > > <http://www.jsoftware.com/docs/help602/user/sys_lista.htm>
> > > www.jsoftware.com/docs/help602/user/sys_lista.htm
> > > <https://www.google.com/search?q=rand11&sitesearch=
> > jsoftware.com&btnG=Search#>
> > >
> > >    1.
> > >    <http://webcache.googleusercontent.com/search?
> > q=cache:qHR9crs8xA4J:www.jsoftware.com/docs/help602/
> > user/sys_lista.htm+&cd=2&hl=en&ct=clnk&gl=us>
> > >    2.
> > >    <https://www.google.com/search?q=related:www.
> > jsoftware.com/docs/help602/user/sys_lista.htm&tbo=1&sa=X&ved=0ahUKEwis-
> > aa01JzXAhVH7IMKHVyCCWoQHwgwMAE>
> > >
> > > rand11, random, v, generate y random numbers in interval (_1,1). range,
> > > numeric, v, range from a to b [in steps of c]. readbmp, bmp, v, read
> > bitmap
> > > file, returning ...
> > >
> > > Both links eventually lead to this page:
> > > http://www.jsoftware.com/docs/help602/user/script_random.htm
> > >
> > > That page has the following table with no links for rand11, or for that
> > > matter most of the other verbs:
> > > random: various random number utilities
> > > Name Type Description
> > > deal verb deal x items from y (no repetition)
> > > dealx verb deal x indices from shape y (no repetition)
> > > randomize verb sets a random value into random link
> > > rand01 verb generate y random numbers in interval (0,1)
> > > rand11 verb generate y random numbers in interval (_1,1)
> > > setrl verb set random link
> > > toss verb pick x items from y (with repetition)
> > > tossx
> > > <http://qymjdgu.jsoftware.com/docs/help602/user/script_
> random.htm#tossx>
> > > verb pick x indices from shape y (with repetition)
> > >
> > >
> > >
> > > So I still can't see the code for rand11. I can guess that there is a
> > > folder somewhere labeled "random" or maybe it's a file, but there is no
> > > clue where that is. A direct link in the rand11 text on this page would
> > > avoid a lot of hunting around on the website.
> > >
> > > Skip
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to