How to apply shuffling function in javascript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to apply shuffling function in javascript?

Hello every body... i want to develop a jig saw game and for this game i want a code in javascript or jquery so that can shuffle the pic for end users and then they can play it or rearrage it for fun .... please help me out and thank you in advance

19th Jan 2018, 2:18 PM
kashif ahmad
kashif ahmad - avatar
3 Answers
+ 12
i assume you mean shuffling an array..... you can do something like this https://code.sololearn.com/WtNQ0pqn9AZ6/?ref=app
19th Jan 2018, 2:57 PM
Burey
Burey - avatar
+ 12
added matrix shuffle as well
19th Jan 2018, 3:51 PM
Burey
Burey - avatar
+ 2
@burey thank you bro.. actually i want to create a jig saw game and for that i need code which can directly shuffle the picture for the end users.....
19th Jan 2018, 3:00 PM
kashif ahmad
kashif ahmad - avatar