Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- //your array of pokemon
- var randNum = Math.floor(1+Math.random()*649);
- $('img').attr('src', randNum + '.png');
- $('audio').attr('src', randNum + '.mp3');
- $('p').text("#" + randNum + " " + pokemon[randNum]);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement