ah I'm stupid generate groves right you idiot
This commit is contained in:
parent
0004324b4c
commit
04e94c297f
2 changed files with 10 additions and 1 deletions
|
|
@ -117,7 +117,11 @@ impl<T> Harvest<T> where
|
|||
T: Harvestable + Debug + Clone + Display
|
||||
{
|
||||
pub fn new(color_weights: &ColorWeights, config: &Config) -> Harvest<T> {
|
||||
let rolled_fields: usize = rand::distributions::Uniform::new(3, 6).sample(&mut thread_rng()) * 2;
|
||||
let rolled_fields: usize = (
|
||||
3 +
|
||||
rand::thread_rng().gen_range(0..=1) +
|
||||
rand::thread_rng().gen_range(0..=1)
|
||||
) * 2;
|
||||
|
||||
let mut fields: Vec<T> = Vec::new();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue