RAWG Video Games Database

फ़्री
द्वारा RAWG | अपडेट किया गया il y a 22 jours | Gaming
लोकप्रियता

9.7 / 10

लेटेंसी

504ms

सेवा का स्तर

91%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

Is it possible to choose a random slug name out of all games?

Rapid account: Artiscostar
artiscostar
il y a un an

Hello! I’m using the rawg code from uburuntu and I was wondering if there was a way to get a random slug name out of the api using it. With the example line coros = [api.games_read(id=name) for name in [‘grand-theft-auto-v’, ‘minecraft’]], I could put whatever specific game I want in the list and get info, but what if I want a random game’s information? I would need to somehow access all the slug names and choose from it randomly, but I’m not sure how to do that. Thanks!

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें