fixed random generation