Re: [Pdl-general] Generating a vector of random integers

2018-04-08 Thread William Schmidt
Craig, Thank you, it works but first I had to pick those method calls apart to see what each is doing and rtfm about *sever* in PDL::Core. So, I am left with a set of questions best depicted with some examples. As I understand the ::Core pod, that random call and floor are creating a virtual

Re: [Pdl-general] Generating a vector of random integers

2018-04-08 Thread Karl Glazebrook
Noting there is also the module PDL::GSL::RNG; which has a lot of stuff from GSL > On 7 Apr 2018, at 10:58 am, Craig DeForest wrote: > > Welcome, William! > > You are probably looking for “random()”, which has the same syntax as > “zeroes()” but returns a vector of

Re: [Pdl-general] Generating a vector of random integers

2018-04-08 Thread William Schmidt
Craig, Just discovered PDL::NiceSlice which explains that slicing *$vec->(...);* syntax I asked about. Will On Sun, Apr 8, 2018 at 12:33 PM, William Schmidt < t.william.schm...@gmail.com> wrote: > Craig, > > Thank you, it works but first I had to pick those method calls apart to > see what

Re: [Pdl-general] Generating a vector of random integers

2018-04-08 Thread Craig DeForest
Hi, Will! Answers in line. Cheers, Craig > On Apr 8, 2018, at 11:33 AM, William Schmidt > wrote: > > Craig, > > Thank you, it works but first I had to pick those method calls apart to see > what each is doing and rtfm about sever in PDL::Core. > > So, I am