while macqueen was fastening his seat belt on board his spacecraft , the guard commander took from his pocket a device for generating quantum random numbers , selected 8 on the display , and pressed the button .