How to automate amazon product list


I am trying to automate a product list like AMAZON products list.
I need help, how to select the products from list(i mean to select randomly or other way).
Once i perform scroll/swipe, the index for each product will be changed (I will select products 1&2 and perform scrolling, the index for next product will start from 1).

Appium 1.7.1
Andriod: 6.0.1
Real Device: Redmi