Skip to content
Sign upLog in
Profile icon

Robert Glos

@Bobo48
Repls
Community
Bobo48
Bobo48
shared a Post
3 years ago
3
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.3 years ago
Bobo48
Bobo48
shared a Post
3 years ago
1
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)) `3 years ago
Geocube101
Geocube101
change the value of a by putting a = random.randint(1, 100) inside the loop3 years ago
Bobo48
Bobo48
shared a Post
3 years ago
3
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
launcherman08
launcherman08
Can you add the repl pls?3 years ago
sojs
sojs
Your error is that you put some "and" and "or" statements in quotes3 years ago
sojs
sojs
Fixed it: https://repl.it/@sojs/Gambling-thingy3 years ago