Fix a bug of factory

Share "Random" between two games