Uniform distribution from a fractal Perlin noise function in C#

后端 未结 2 2027
旧巷少年郎
旧巷少年郎 2021-02-14 09:01

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:13

    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.

提交回复
热议问题