How are random teams in Pokemon showdown determined?

2 minute read

Pleaselog inorregisterto add a comment.

Pleaselog inorregisterto add a comment.

It seems to pick random moves from the viable moves list, and keeps track of the amount of damaging and status moves. It also has some things to make moves usable, for example only use Sleep Talk if Rest is generated.

The levels are set for each tier, like so:

The EVs are 85 for all stats, and IVs are 31 for each stat.It also has something to filter more than 2 of each type, and 1 for any type combination.

Past this, it has a counter for Uber and LC, NFE and NU pokes respectively (uber is one counter and the rest are another).

This tries to limit the amount of Ubers and NUs on one team to promote “fun”:LC Pokemon have a hard limit in place at 2; NFEs/NUs/Ubers are also limited to 2 but have a 20% chance of being added anyway.

For the pokes themselves, a random number is most likely generated and the poke with the pokedex position of that number is selected.

For a random Pokemon to be chosen, you need to choose a random number between 1 and 718 (the amount of Pokemon). But for a computer to pick a completely random number is impossible. But there are some meathods of choosingalmoastrandom numbers:

This isn’t always the best method, but it can be improved by using the time as the seed. This makes it much more random, and this is probably the method showdown (and other things that rely on random numbers) uses.

Another method is the one I explain as a comment on the question. I’m not sure what its called so I can’t look it up more.

So there you have it! Some methods computers use to choose random numbers. Showdown probably uses the first one, and uses the time as the seed, because there are a lot of people doing random battles on showdown, and they need to make it really random.

Sources:http://en.wikipedia.org/wiki/Random_number_generation#Generation_methodsand my uncle telling me this un-named method of random number generation which he claims to be called binary slicing, but apparently that’s something else.