new method: random; fix a bug (0 => false)