# Image positions not randomly shuffling online

**URL:** <https://discourse.psychopy.org/t/image-positions-not-randomly-shuffling-online/19506>\
**Category:** Online experiments\
**Tags:** pavlovia\
**Created:** [January 9, 2021, 6:37am UTC](https://discourse.psychopy.org/t/image-positions-not-randomly-shuffling-online/19506 "2021-01-09T06:37:27Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [January 10, 2021, 8:19am UTC](https://discourse.psychopy.org/t/image-positions-not-randomly-shuffling-online/19506/6 "2021-01-10T08:19:22Z")

</div>

In my first Pavlovia experiment I discovered that I couldn’t compare lists but instead had to compare each element separately.

For example, see my code here:

> [@Touchscreen response mode in laptop](https://discourse.psychopy.org/t/touchscreen-response-mode-in-laptop/17201/4):
>
> Begin Routine mouserec = mouse.getPos() Each Frame mouseloc = mouse.getPos() if mouseloc[0]==mouserec[0] and mouseloc[1]==mouserec[1]: pass elif image\_1.contains(mouse): mouserec = mouseloc answer=1 feed1='one\_yellow.png' feed2='two\_white.png' continueRoutine = False elif image\_2.contains(mouse): mouserec = mouseloc answer=2 feed1='one\_white.png' feed2='two\_yellow.png' continueRoutine = False

I think your shuffle is working fine in JS but doesn’t need an import in Python.

---

_[View the full topic](https://discourse.psychopy.org/t/image-positions-not-randomly-shuffling-online/19506)._
