X-Git-Url: https://www.hackdaworld.org/gitweb/?a=blobdiff_plain;f=random.c;fp=random.c;h=3fbf912d64b4f9cfca5e478f9625f4864a978635;hb=cdf203b95bccd0e7e01e83800ad8435f4a2da8c3;hp=3f8ed7240107b32bf696a4462649055442e04032;hpb=9d299f65c528e62247efb3b7f2b70468f43a255c;p=physik%2Fmorpheus.git diff --git a/random.c b/random.c index 3f8ed72..3fbf912 100644 --- a/random.c +++ b/random.c @@ -13,7 +13,7 @@ extern u32 sum_z_cells; extern int random_fd; -/* return random integer between 0 - max */ +/* return random integer between 0 - max-1 */ u32 rand_get(u32 max) { u32 rand_int; @@ -38,3 +38,4 @@ u32 rand_get_lgp(int slope_nel,int start_nel) { return(i-1); /* return values 0...z_cell-1 */ } +