# Jitter from exponential distribution

in OpenSesame

Dear OS community

I'm trying to create a jitter randomize according to a non-symmetric exponential distribution (truncated at 4000 msc). I need the jitter to randomize between 500 msc till 4000 msc and average of 1000 msc.

Any ideas?

Thanks

SH

## Comments

Hmm, no idea what a jitter time is! I can maybe help a bit with the distribution. The below will generate a truncated exponential distribution between 0-3500ms using the inverse cdf method, then add on 500ms. This almost gives you what you want. The mean will be a little shy of 1000 (990 something) because you are cutting a tiny bit of the tail off.

Wow. Thank you so much!

How can I randomly sample the function you've created?

Sorry for slow reply, the variable jitter is a big array of random numbers drawn from the distribution you wanted, so just take as many numbers out as you need starting from 1 to 100,000

cheers

I'll try that.. Thanks!!!!!