BitStream
BitStream

Reputation: 11

c++ Quick Random Number from 3 Seeds

I’m trying to make a procedurally generated game in c++, and I’m making my own noise functions. To do this I also want to make my own random number generator/hash/algorithm which takes in 3 seeds: worldX, worldY and worldSeed (They’ll probably all be ints). To clarify, this isn’t seeding it then using it multiple times, I mean an algorithm that does some quick maths on the seeds and produces an output quickly. I’m trying to find the quickest way to do that while still maintaining an even spread of outputs.\

Appreciate any help :)

Upvotes: 1

Views: 54

Answers (0)

Related Questions