Skip to content
Open navbar menu
Sign UpLog In
Profile icon

Robert Glos

@Bobo48
Bobo48
Bobo48
shared a Post
4 years ago
segmentation fault (core dumped)
I am making a very simple game to get my percentages in German class up easily but I just started getting this error: segmentation fault (core dumped)
German game
Python
Nemoiscool
Nemoiscool
Looks like something could be causing something else to crash. Unfortunately, I'm not sure what. It could be the python interpreter, could be random, could be sys... I'm not really sure what to do about it.4 years ago
Bobo48
Bobo48
shared a Post
4 years ago
I need to make it so a generates a random number each time instead of printing out the same random number multiple times.
Thing
Python
ash15khng
ash15khng
Just do something like: import random for i in range(10): print(random.randint(1,100)) `4 years ago
Geocube101
Geocube101
change the value of a by putting a = random.randint(1, 100) inside the loop4 years ago
Bobo48
Bobo48
shared a Post
4 years ago
I am making a gambling script in Python and it seems to always throw out the same answer, thank you for help. The coin flip script seems to work but t
N0tACyb0rg
N0tACyb0rg
Can you add the repl pls?4 years ago
sojs
sojs
Your error is that you put some "and" and "or" statements in quotes4 years ago
sojs
sojs
Fixed it: https://repl.it/@sojs/Gambling-thingy4 years ago