Fix document readying
random card generation