How to reposition images in javasciprt and how to rearrange images randomly? : 
If you click on the Change Location button, a prompt will pop up.

For example, if you enter 1-4, position 1 and 4 must be changed. 

Also, if you press the 'Shuffle' button, the 4 photos have to be rearranged at random.

I would appreciate it if you could help me.

Here is the code that I made


I want to upload my code but I keep getting an error.
