RAWG Video Games Database

無料
よって RAWG | 更新済み לפני 23 ימים | Gaming
人気

9.7 / 10

レイテンシー

503ms

サービスレベル

90%

Health Check

N/A

すべてのディスカッションに戻る

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

Rapid account: Artiscostar
artiscostar
לפני שנה

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!

Rapid account: Asusalman 986
asusalman986 Commented לפני 8 חודשים

ディスカッションに参加しましょう-以下にコメントを追加してください:

ログイン/サインアップして新しいコメントを投稿