Uniform distribution from a fractal Perlin noise function in C#

后端 未结 2 1119
[愿得一人]
[愿得一人] 2021-02-14 08:23

My Perlin noise function (which adds up 6 octaves of 3D simplex at 0.75 persistence) generates a 2D array array of doubles.

These numbers each come out norm

2条回答
  •  忘了有多久
    2021-02-14 09:16

    Oddly enough I just wrote an article on your very question:

    http://ericlippert.com/2012/02/21/generating-random-non-uniform-data/

    There I discuss how to turn a uniform distribution into some other distribution, but of course you can use similar techniques to transform other distributions.

提交回复
热议问题