RAWG Video Games Database

БЕЗКОШТОВНО
(Ким) RAWG | Оновлено un mese fa | Gaming
Популярність

9.7 / 10

Затримки

1,930ms

Рівень обслуговування

87%

Health Check

N/A

Повернутися до всіх обговорень

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

Rapid account: Artiscostar
artiscostar
un anno fa

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!

Приєднуйтесь до обговорення — додайте повідомлення нижче:

Вхід / Реєстрація, щоб публікувати нові повідомлення