Hello there @icxrusluv
If you want to use seeds, you can not use random. You must be sure that every time a seed is used, the same seed must give the same results, so it can not be random at all. I would so something like this:
What seed does is to generate a number using only the seed number. For example, lets say you have 10 different hair and 10 different faces and you want to genereate them from a seed.
First, have 2 arrays head[10] and face[10]. Each element of the array is a different face and different head.
You need to create some kind of formula to convert a seed number to a selection of elements of that array, for example a "stupid but effective way could be:
Seed number: 856
Some formula to change the number a little.
Number to use = Mathf.FloortoInt ( ((Seed +4) *23)/7 )
Number to use: 2826
2826.toString()
Select the last number from the string (i dont remeber the code to do that, but its easy do to) : 6
Select the second last number from the string : 2
convert 6 into integrer variable
use head[6]
use head[2]
You can do whaterver you want with the seed number, but must be always the same formula, so one seed gives always the same results.
You need to adapt it to your needs.
A good practice is this:
Imagine you have now 12 heads and 7 faces
Seed: 786
For head:
786/12
if resut is > 12 , then divide by 12 again, and again and again, until you get a number between 0 and 12, so you can easy select the element from the array heads[12]
For face:
first, i change the number to divide a little:
Seed+3
789/7
if is > 7, divide again, agian...
I expect you to get what i’m trying to explain. You need a formula to select an elemnt form an array, but must be always the same formula.
Random can be used to select a random seed, but not to calculate which face to choose.
BYEE 