From: ImageAnalyst on
On Mar 28, 10:51 am, ImageAnalyst <imageanal...(a)mailinator.com> wrote:
> Statistically, is that any different than just getting the 10,000
> numbers directly and immediately  via
>
> randomSample = randn(1,10000)
>
> ???
> Either way you end up with 10000 normally distributed random numbers,
> right?

-------------------------------------------------------
Actually I reread Jan's message and realize that I'm saying the same
thing he did. Sorry Jan.
From: Jan Simon on
Dear ImageAnalyst!

> Actually I reread Jan's message and realize that I'm saying the same
> thing he did. Sorry Jan.

Nice try.
*I* have invented the "hyper-virtual memory" and a method, to efficiently pick elements from arrays, which occupy zillions of bytes. No chance to participate in the license fees! Sorry, ImageAnalyst.

Kind regards, Jan
From: ImageAnalyst on
On Mar 28, 11:27 am, "Jan Simon" <matlab.THIS_Y...(a)nMINUSsimon.de>
wrote:
> Dear ImageAnalyst!
>
> > Actually I  reread Jan's message and realize that I'm saying the same
> > thing he did.  Sorry Jan.
>
> Nice try.
> *I* have invented the "hyper-virtual memory" and a method, to efficiently pick elements from arrays, which occupy zillions of bytes. No chance to participate in the license fees! Sorry, ImageAnalyst.
>
> Kind regards, Jan

---------------------------------------------------------------------
Jan, that's okay. I'm still very busy with my "Mind reading crystal
ball toolbox." It will be sort of like MindFlex (http://
www.mindflexgames.com/) on steroids. So, once that's completed, I
should have plenty of license fees rolling it.
From: Rajeev Narayanan on
Hello All,

Thanks for all the information. The solution pick=randn(1,10000) will generate some 10000 random number, but i want to pick from the element p which i have already generated. I think i am confusing you people. Here is the code which i am using to generate p

randn('state', sum(clock));
p = zeros(1, 3^11);
T= 0.00000001
for k= 1:3^11
p(k) = sqrt(T)*randn
end

Now from 'p' i need to pick some 10000 samples. Hope you understand the question.

Thanks,
Rajeev


ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <aecfa453-be2b-4c83-9fec-b4c4d7ef0f71(a)g10g2000yqh.googlegroups.com>...
> On Mar 28, 10:51 am, ImageAnalyst <imageanal...(a)mailinator.com> wrote:
> > Statistically, is that any different than just getting the 10,000
> > numbers directly and immediately  via
> >
> > randomSample = randn(1,10000)
> >
> > ???
> > Either way you end up with 10000 normally distributed random numbers,
> > right?
>
> -------------------------------------------------------
> Actually I reread Jan's message and realize that I'm saying the same
> thing he did. Sorry Jan.
From: forkandwait w on
"Rajeev Narayanan" <rite2rajeev(a)gmail.com> wrote in message <hoodr9$ro8$1(a)fred.mathworks.com>...
> Hello All,
>
> Thanks for all the information. The solution pick=randn(1,10000) will generate some 10000 random number, but i want to pick from the element p which i have already generated.

randsample() seems to fit your needs. Have you tried it?