Closed AditMeh closed 8 months ago
To generate the perlin noise, I need a permutation of numbers from 0 to n-1. I can make a vector of numbers from 0 to n-1, but I am not sure how to shuffle it.
Never mind, you can just cache and use this one:
https://www.wikiwand.com/en/Perlin_noise#Permutation
To generate the perlin noise, I need a permutation of numbers from 0 to n-1. I can make a vector of numbers from 0 to n-1, but I am not sure how to shuffle it.