Clarify comment
This commit is contained in:
parent
4b7d363495
commit
ccae209b0d
1 changed files with 1 additions and 1 deletions
|
|
@ -505,7 +505,7 @@ impl RngUtil for @Rng {
|
|||
self.next() & 1u32 == 1u32
|
||||
}
|
||||
|
||||
/// Return a bool with a 1 in n chance of true
|
||||
/// Return a bool with a 1-in-n chance of true
|
||||
fn gen_weighted_bool(&self, n: uint) -> bool {
|
||||
if n == 0u {
|
||||
true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue