Final random generation and data select