fixed random generation process