Hello
Guest
Register
Login
1 Hour
1 Day
1 Week
1 Month
Forever
LWJGL 3.3.2 released
Menu
Home
Help
Search
Login
Register
go
LWJGL Forum
Programming
OpenGL
Pseudo random number Algorithm
« previous
next »
Print
Pages: [
1
]
Pseudo random number Algorithm
2 Replies
2839 Views
Setlock
26
Pseudo random number Algorithm
«
on:
December 06, 2016, 00:02:38 »
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!
Logged
abcdef
336
Re: Pseudo random number Algorithm
«
Reply #1 on:
December 06, 2016, 08:27:31 »
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.
Logged
Cornix
488
Re: Pseudo random number Algorithm
«
Reply #2 on:
December 06, 2016, 09:20:58 »
The built in of the JDK is pretty good. Just look at that code if you really want to build your own.
Logged
Print
Pages: [
1
]
« previous
next »