I have a JSON File (ArrayList) with some Restaurants and km(miles) from my Workplace to the Restaurant. The User can choose how far away the Restaurant should be (5km, 10km..) after that should the Applikation chooses the one Restaurant from the list, which inside this km is. So I need a random generator that, choose a Restaurant according to my criteria. The Result should show a Restaurant with “Name, Address, km, phone number and day offs”.
Can someone support me? I’m new in this Business.