fix setSeed call in docs

This commit is contained in:
Josh de Leeuw 2022-07-14 11:00:06 -04:00
parent 3f53f795bd
commit 764caae5c7

View File

@ -498,7 +498,7 @@ The seed value will be returned from the function call, allowing you to save it
#### Use a random 32-bit seed and save to data #### Use a random 32-bit seed and save to data
```javascript ```javascript
const seed = jsPsych.setSeed(); const seed = jsPsych.randomization.setSeed();
jsPsych.data.addProperties({ jsPsych.data.addProperties({
rng_seed: seed rng_seed: seed
}); });
@ -507,7 +507,7 @@ jsPsych.data.addProperties({
#### Use your own seed #### Use your own seed
```javascript ```javascript
jsPsych.setSeed("jspsych"); jsPsych.randomization.setSeed("jspsych");
``` ```
--- ---