arionmiles / infinitygauntlet Goto Github PK
View Code? Open in Web Editor NEWBring balance to /r/thanosdidnothingwrong
License: MIT License
Bring balance to /r/thanosdidnothingwrong
License: MIT License
So that the subscribers count appear halved and the final result is the same.
Hey guys i was just wondering if you'd considered alternative methods for selecting those to be banned? My concern is you have to enter the amount to be banned and theoretically this process will take a few days (as the bot will be rate limited). The obvious problem here is that we won't achieve a perfect balancing.
I propose the following solution, we completely remove the random sampling. I've created a python script to show that you can simply use random
in python to achieve a perfect balancing. Over 10 trials of 200,000 runs per trial i have shown that random.randint(0, 1)
achieves a perfect 50/50 split.
I propose a pull request whereby we run my script to populate an arbitrarily large list, 300,000 or so but larger than the subscriber population. This list is simply 0s and 1s, even or odd. Then something like this should work with a change to the ban
method where it now takes a user to be banned and simply bans.
for fate, user in zip(ban_list, user_data):
if fate == 0: ban(user)
The list is space inefficient and creating it is time inefficient but traversing the list with zip is o(1) in python 3. This should also prevent any sort of failing under load or anything like this. Creation of the lists happens elsewhere and the bot slowly iterates through the lists destroying as it travels.
Script is uploaded as .txt because github is annoying.
fate_selector (change me back to .py)
Update: Admins are making the bot.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.