cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar

Set random seed of function Random Shuffle

Hello

 

I'm using the Random Shuffle function, but I'd like to set the random seed so that I can reproduce certain results. The random seed function alone doesn't seem to apply, so how do I go about it?

 

Names Default To Here( 1 );
Random Seed( 123 ); // Fix random seed
exA = [1 2 6, 3 5 8];
Random Shuffle( exA );
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Set random seed of function Random Shuffle

Try with Random Reset(123) instead of Random Seed(123)

Names Default To Here(1);
Random Reset(1);
exA = [1 2 6, 3 5 8];
Random Shuffle(exA);

Random Reset(seed) 

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Set random seed of function Random Shuffle

Try with Random Reset(123) instead of Random Seed(123)

Names Default To Here(1);
Random Reset(1);
exA = [1 2 6, 3 5 8];
Random Shuffle(exA);

Random Reset(seed) 

-Jarmo

Re: Set random seed of function Random Shuffle

Thank you !!! It solved my issue !

Recommended Articles