1. find a bug with random number generator.
2. add average.py to filteroutput data to spicific format.

srand() only regenerate a new sequence when seed in srand(seed) is different.