Question: Setting seed for RandomTools choose

Hello folks,

I have to admit I am somewhat new in using maple as well as in this board. However I used the search engine and could not find the answer to my question.

I coded a little program that - among other things - should randomly draw one entry from a set of integers. Thus I use the function choose from the RandomTools package. From other software packages (for example stata) I know that usually one would set a seed for those pseudo random numbers to be able to replicate the results. However I can not find this option within maple. I did find the "seed" variable in other subpackages of the RandomTools but it does not seem to have an influence on choose. Now the question is:

How can I define the seed that is used for the choose-mechanism?

I would be grateful for any support.

bready

P.S. a part of my code looks like this (and the whole program otherwise works perfectly fine):

with(RandomTools);

decision:=0;

setp1 := {1, 2, 3, 4, 5};

decision:=Generate(choose(setp1));

Please Wait...