Ask coding questions

← Back to all posts
how can i import random?
Boutef

i cant import random !! may i help me pls

Voters
Boutef
Comments
hotnewtop
CodingElf66

Just do the following code:

Yay, you're done! Can you mark this as answered?

SomeBoyPlayz

you can invite me to your repo code, I can help @Boutef

Boutef

@SomeBoyPlayz its work, i forgot to type random.randint()
thx for your help

SomeBoyPlayz

@Boutef oh ok np :D

SomeBoyPlayz

Python:

import random

yes if that doesnt work try installing it using pip or something else

SixBeeps

@SomeBoyPlayz Erm, random isn't a pip package lol

SomeBoyPlayz

@SixBeeps oh ok my bad sry