Random.nextGaussian() is supposed to give random no.s with mean 0 and std deviation 1.
Many no.s it generated are outside range of [-1,+1].
how can i set so that it gives n
Gaussian distribution with your parameters. is has density e^(-x^2/2). In general it is of the form e^(linear(x)+linear(x^2)) which means whatever settings you give it, you have some probability of getting very large and very small numbers.
You are probably looking for some other distribution.