Java ThreadLocalRandom nextGaussian() methodThe nextGaussian() method of Java ThreadLocalRandom class returns the next pseudorandom which is the Gaussian ("normally") distributed double value with mean 0.0 and standard deviation 1.0 from this random number generator's sequence. Syntax:Parameter:NA Returns:This method returns the next pseudorandom which is the Gaussian distributed double value. Example 1Output: Random Gaussian double value is: 0.44227562722507735 Next TopicJava-threadlocalrandom-nextint-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India