diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-14 04:28:39 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-14 04:28:39 +0000 |
commit | f2768e8babcea4fd23f7e25cb19650cd61fd1015 (patch) | |
tree | 8df3402bc737d9fed6f9323d9df7e1c2143856b4 /wk5/pset/inheritance | |
parent | fcc3f3d59c9ce190dfeffe6c22c604bd9d68ea32 (diff) |
Sat, Apr 13, 2024, 9:28 PM -07:00
Diffstat (limited to 'wk5/pset/inheritance')
-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 |