Pseudo random number Algorithm

Started by Setlock, December 06, 2016, 00:02:38

Previous topic - Next topic

Setlock

Hello again everyone, i'm trying to make a pseudo random algorithm where you input a number(seed) and it will give u a bunch of x and y coordinated to make a good looking world. If anyone can help that would be great!

abcdef

Just use a normal random number generator and run it twice and multiply the random numbers (assuming between 0 and 1) by the screen width and height.

Cornix

The built in of the JDK is pretty good. Just look at that code if you really want to build your own.