Python で random 関数をいじりながら、random.py として保存するプログラムを作成しました。このプログラムを作成すると、いつでもランダムにインポートしてその関数を利用しようとすると、次のエラーが発生しました。
Traceback (most recent call last):
File "testrandom.py", line 3, in <module>
print random.randint(10, 20)
AttributeError: 'module' object has no attribute 'randint'
ランダム関数の上書きを解除する方法について何か提案はありますか?
どうもありがとう