Advertisement
EnggarHakim

kartu

Aug 23rd, 2015
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. var symbol=new Array()
  3. symbol[0]='&hearts;'
  4. symbol[1]='&diams;'
  5. symbol[2]='&clubs;'
  6. symbol[3]='&spades;'
  7.  
  8. var nomor='A23456789JQK';
  9. var acaknomor=Math.floor(Math.random()*(nomor.length))
  10. var acaksymbol=Math.floor(Math.random()*(symbol.length))
  11. var kartu='<table border=0 height=100% width=100%><tr><td align=center><font size=12>'+nomor[acaknomor]+'<br>'+symbol[acaksymbol]+'</font></td></tr></table>'
  12.  
  13. document.write(kartu);
  14.  
  15. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement