Question: How to create a number of independent random samples

Dear Maple users

In a short Maple program I am dealing with a collection of random samples from a uniform distribution. My problem is that every time I call a procedure creating a sample, I get the exact same one! Every run needs a different seed. How do I get a new 'random' sample? I could probably let Maple create all from scratch calling the Sample command with a two-dimensional range, but this will requre a big memory ...

 

Here is part of my code:

 

with(Statistics):

randomize():

X:=RandomVariable(Uniform(0,10)):

A:=Sample(X,1..10000)

 

Regards,

Erik

Please Wait...