mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
fix setSeed call in docs
This commit is contained in:
parent
3f53f795bd
commit
764caae5c7
@ -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
|
||||
|
||||
```javascript
|
||||
const seed = jsPsych.setSeed();
|
||||
const seed = jsPsych.randomization.setSeed();
|
||||
jsPsych.data.addProperties({
|
||||
rng_seed: seed
|
||||
});
|
||||
@ -507,7 +507,7 @@ jsPsych.data.addProperties({
|
||||
#### Use your own seed
|
||||
|
||||
```javascript
|
||||
jsPsych.setSeed("jspsych");
|
||||
jsPsych.randomization.setSeed("jspsych");
|
||||
```
|
||||
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user