Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (i=1;i<n;i++){
- part = b-a; // inicializo part grande para poder hacer el bucle while
- while (part > B){
- random = ( (float)rand()/Pi ) % floor(b-X[i-1]) + X[i-1];
- if (random > X[i-1]){
- X[i] = random;
- part = X[i] - X[i-1];
- }
- }
- }
Add Comment
Please, Sign In to add comment