Ask coding questions

← Back to all posts
Code doenst work half of the time
ValeriusPetrin1

I have a portion of code that will print a random number of events every year. When i go into the event process in my output, most of the time it returns something like 'uxemburg.n of resources has left Slovenia with no choice but to surrender to Lu' but it should be 'A depletion of resources has left Slovenia with no choice but to surrender to Luxemburg.' I know for a fact that this is replits problem as it sometimes will work. Also, note that I have a LOT of events clustered into one place. Thanks!

Voters
ValeriusPetrin1
Comments
hotnewtop
MrVoo

Attach a repl.

ValeriusPetrin1

@MrVoo It works perfectly on here but not in my workspace