diff options
Diffstat (limited to 'wk5/pset/inheritance/inheritance.c')
-rw-r--r-- | wk5/pset/inheritance/inheritance.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wk5/pset/inheritance/inheritance.c b/wk5/pset/inheritance/inheritance.c index 0f3fd13..f7d7b5d 100644 --- a/wk5/pset/inheritance/inheritance.c +++ b/wk5/pset/inheritance/inheritance.c @@ -66,8 +66,8 @@ person *create_family(int generations) new->parents[1] = NULL; // TODO: Randomly assign alleles - // new->alleles[0] = round(random() / ((double) RAND_MAX + 1)); - // new->alleles[1] = round(random() / ((double) RAND_MAX + 1)); + new->alleles[0] = round(random()) % 3; + new->alleles[1] = round(random()) % 3; } // TODO: Return newly created person |