Skip to content
Discussion options

You must be logged in to vote

Hi @jdistefano3

Two options that come to mind:

Option 1: Rename the functions. You could just name the first generateRandomStimulus function generateRandomStimulus3, the second generateRandomStimulus6, and the last generateRandomStimulus9. You would need to edit function generateRandomStimulus(){ to be function generateRandomStimulus3(){ and then replace stimulus: generateRandomStimulus, with stimulus: generateRandomStimulus3,, and so on for the others.

Option 2: Add a parameter. You could also add a parameter to generateRandomStimulus that indicated the length of the stimulus. You would edit the first line so function generateRandomStimulus(){ becomes function generateRandomStimulus(stim…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jdistefano3
Comment options

Answer selected by jodeleeuw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2715 on July 20, 2022 13:25.