cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

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

Add Random Seed to prediction formula

I would like make a reproducible simulation formula by adding a the same random number to a prediction formula .Guess this is possible with Random seed? I olnly find a very brief explanation in JMP help; how to add this random seed to a formula? 

13 REPLIES 13
frankderuyck
Level VII

Re: Add Random Seed to prediction formula

Remark: there is a selectivity > 100%, still have to adjust formula a bit to keep results < 100%

jthi
Super User

Re: Add Random Seed to prediction formula

If you can't add that random value column to the table which students are using, I think you could use Random Reset(Row()) (you can change the Row() to something else, but it should still be Row() dependent and not randomized, so Row()*Row() or Row() + 10 are for example fine).

jthi_0-1696784460942.png

jthi_1-1696784466191.png

Column 8 just demonstrates the random reset + random normal part

 

-Jarmo
frankderuyck
Level VII

Re: Add Random Seed to prediction formula

Great, works fine, thank Jarmo!

Mauro_Gerber
Level IV

Re: Add Random Seed to prediction formula

A small input, I use this to prevent the constant reset of the seed:

If( Row() == 1,
	Random Reset( 500 )
);

Random Normal( 5, 0.5 );

After the reset, the sequence is always the same "random" numbers within a JMP version.

 

"I thought about our dilemma, and I came up with a solution that I honestly think works out best for one of both of us"
- GLaDOS

Recommended Articles