【Python超初歩的エラー】AttributeError: module ‘xxx’ has no attribute ‘xxx’

ランダムな文字を生成するプログラムを書いて実行すると以下のようなエラーが。
AttributeError: module 'random' has no attribute 'choice'
原因
クソ初歩的な原因でした。インポートするモジュール名と実行ファイル名が重なってたから。です。確かにrandom.pyにしてたわ。ってことで解決。
初心者です…
ランダムな文字を生成するプログラムを書いて実行すると以下のようなエラーが。
AttributeError: module 'random' has no attribute 'choice'
クソ初歩的な原因でした。インポートするモジュール名と実行ファイル名が重なってたから。です。確かにrandom.pyにしてたわ。ってことで解決。
初心者です…