Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var arr = [], sum = 0;
- for(let count = 0; count < 10000; count++) {
- arr.push(count);
- }
- arr.shuffle(); // randomize order of elements, mutating operation
- for(let i = 0; i < 100000; i++) {
- for(let j = o; j < arr.length; j++) {
- if(arr[j] > 1024) {
- sum += arr[j];
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement