> Remember that I am generating cars even while the > simulation is running, hence calculating this HCF at > the beginning is not going to work. > Any comments? This won't help you much in writing your program, but you might find it interesting and vaguely similar to what you're doing: www.simutrans.de Alan