update definition on a random number and entropy