A normal random variable from a random number generator

Hello
I need to set variable intervals to display visual stimuli and want these intervals to have a normal distribution. Is there a method to approximate a normal distributed sampler using ‘rand’ or one of the other existing random number generators?

Thank you very much!
Marisol

Hi Marisol,

Probably the easiest thing would be to use Python’s random module via a Python action, e.g.

run_python_string ('import random')
value = py_call('random.gauss', mean, std_dev)

Cheers,
Chris

Hey Chris!

Thank you very much! it works pretty nice!

Marisol