Closed Blayung closed 10 months ago
I don't know man, it looks fine to me. How would you want to improve it? You could make the translation keys' ranges static, but that's going for a shitty compromise, where performance isn't really that bad.
I would just avoid creating a list of all of them, considering all of them are the same string + i. You only really need to count how many there are to pass to the random.
Oh, yeah that's something I haven't thought about.
I've just pushed a correction, take a look at it.
Are you gonna merge it?
Yeah, yeah. I still have to review it. I'll merge when I get back to working on this.
Merged. Thanks!
It's a good idea, I'm just not sure about how it's being down here. I think it could be done better, performance-wise.