computing random draws if user specifies random in the init query