when flag clicked
repeat ()
wait () seconds
pick random (1) to ()
start sound [meow v]
reset timer
wait until <>
key <> pressed?
add (timer) to [list v]
when flag clicked
delete all of [list v]
when flag clicked
delete all of [list v]
repeat (10)
wait (pick random (1) to (10)) seconds
start sound [meow v]
reset timer
wait until <key [space v] pressed?>
add (timer) to [list v]
set [total v] to (0)
set [count v] to (1)
repeat (length of [list v])
change [total v] by (item (count) of [list v])
change [count v] by (1)
set [average v] to ( (total) / (count) )
show variable [average v]
when flag clicked
hide variable [average v]
set [total v] to (0)
set [count v] to (1)
repeat (length of [list v])
change (total) by (item (count) of [list v])
change (count) by (1)
end
set [average v] to ((total) / (count))
show variable [average v]
when flag clicked
hide variable [average v]
say (join [Your average reaction time was ] ( join (average) [ seconds]))
show variable [average v]