Page 1 of 1

Posted: Fri Jul 14, 2006 9:14 am
by fern
I have seen a request as to how APE choose the numbers it generates? Does anyone know?

Posted: Sat Jul 15, 2006 12:53 am
by Jay
I don't believe anyone outside of Blue Fang knows for sure and I never experimented. I suspect there are 3 parts, at least that is how I would do it. One part appears to be related to the type of ingame thing that was used as a model. Another part should be based on the number of seconds since ZT was made, since this gets very close to guaranteeing uniqueness because it is very difficult for 2 people to start a new project at exactly the same second. But, just in case, I would have part of it being a randomly generated part. So even if 2 people do start a new project in exactly the same second, that would make it very unlikely to get the same id. However, as I said, I don't know the actual algorithm used.

Posted: Mon Jul 17, 2006 8:44 am
by ztdoctor
Thanks Jay :) - I was the original source of the query!

Dr Rick (aka ztdoctor)