Guest User

Untitled

a guest
Jun 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. for (i=1;i<n;i++){
  2. part = b-a; // inicializo part grande para poder hacer el bucle while
  3. while (part > B){
  4. random = ( (float)rand()/Pi ) % floor(b-X[i-1]) + X[i-1];
  5. if (random > X[i-1]){
  6. X[i] = random;
  7. part = X[i] - X[i-1];
  8. }
  9. }
  10. }
Add Comment
Please, Sign In to add comment