some more work getting random reject method to work
[physik/nlsop.git] / random.c
index ec99a33..30a7fab 100644 (file)
--- a/random.c
+++ b/random.c
@@ -86,5 +86,5 @@ u32 get_rand_reject(u32 max_x,u32 max_y,u32 *graph)
   if(y<=graph[x]) ok=1;
  }
 
- return y;
+ return x;
 }