This software is a Matlab implementation of restricted sampling from Gaussian distribution, and sample x (column vector) from N(x_mu, x_var), restricted in x_min<=x<=x_max.