Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Python Account Generator/Number Generator

Hello I need Help im trying to make a generator and for some reason i get a santax error when i use import random

here is my code



Code
import random

print random.randint(1,1000)
What's the error output ?
If you're using Python 3.x you have to use print as a function, that means you enclosing your output in parenthesis like so: print("hello world")
[Image: 0DvFxnA.gif]
Donate: 3ABKRghau93ziRaDfVwiiwtjky3i1gLrKn
also make sure that the name of the script isnt "random.py".
import random
print (random.randint(1,1000))


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 632 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[C] by yuumiMar 26, 2022 09:08 PM 0 170 Mar 26, 2022 09:08 PM
Last Post: yuumi
[Python] by Fivepoint0Oct 23, 2018 05:24 PM 3 191 Oct 23, 2018 05:24 PM
Last Post: Fivepoint0