What about Uniform distribution and Montecarlo in Qspice?

Hi
I’m doing something wrong to simulate this? Gaussian distribution works fine but not the other two.

Thank you

Qspice seems not implement flat(x) and mc(x,y) yet.
An alternative way may be creating a function with random()?

.func flat(x) x*((random()*2)-1)
.func mc(x,y) x*(1+y*(random()*2-1))

3 Likes