So I have a little problem with my java project I'm currently working on... What I want to do is get a pseudorandom number out of three numbers...
So an example:
float[] numbers = {12.4f, 55.2f, 36.1f}; // returns 3217894 (example)
// Numbers switched
float[] numbers = {55.2f, 12.4f, 36.1f}; // returns another number (so not the example above)
Basically I need it to make something like an ID.
Maybe think of the numbers like coordinates... So if I have the Position (example):
int x = 12
int y = 40
int z = 35
...I want to get an ID for this specific position.
Any thoughts?
Aucun commentaire:
Enregistrer un commentaire