Guest User

Untitled

a guest
Sep 16th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. orig[0]=Math.floor(Math.random() * 4);
  2. orig[1]=Math.floor(Math.random() * 10);
  3. orig[2]=Math.floor(Math.random() * 10);
  4. orig[3]=Math.floor(Math.random() * 10);
  5. orig[4]=Math.floor(Math.random() * 10);
  6. orig[5]=Math.floor(Math.random() * 10);
  7. orig[6]=-1
  8.  
  9. var sum1 = (orig[0]*7)+orig[1]+(orig[2]*7)+orig[3]+(orig[4]*7)+orig[5];
  10.  
  11. var sum2 = sum1%10;
  12.  
  13. orig[6] = ten_percent2[sum2];
  14.  
  15. document.write("4700" + orig[0].toString() + orig[1].toString() + orig[2].toString() + orig[3].toString() + orig[4].toString() + orig[5].toString() + "5825" + orig[6].toString() + "<br />");
Advertisement
Add Comment
Please, Sign In to add comment