Fix randon method