Upgrade RNG
Upgrade RNG

Battle.prototype.random now uses the LCRNG for Gen 5
Battle.prototype.nextFrame calculates what the seed will be next turn or
next n turns.
Enigami/Pokemon-Showdown,AustinXII/Pokemon-Showdown,Darkshadow6/PokeMoon-Creation,Wando94/Spite,hayleysworld/Pokemon-Showdown,Flareninja/Showdown-Boilerplate,abulechu/Lumen-Pokemon-Showdown,TheManwithskills/Server---Thermal,InvalidDN/Pokemon-Showdown,Disaster-Area/Pokemon-Showdown,TheDiabolicGift/Showdown-Boilerplate,PrimalGallade45/Dropp-Pokemon-Showdown,Atwar/http-server-femalehq.rhcloud.com-80.psim.us-,kuroscafe/Paradox,arkanox/MistShowdown,SerperiorBae/Pokemon-Showdown,FakeSloth/wulu,johtooo/PS,Nineage/Origin,DalleTest/Pokemon-Showdown,miahjennatills/Pokemon-Showdown,Flareninja/Pokemon-Showdown,Psyientist/Showdown-Boilerplate,johtooo/PS,gustavo515/test,kupochu/Pokemon-Showdown,Atwar/ServerClassroom,CreaturePhil/Pokemon-Showdown,lFernanl/Zero-Pokemon-Showdown,MeliodasBH/boarhat,MeliodasBH/boarhat,Flareninja/Sora,Mystifi/Exiled,kubetz/Pokemon-Showdown,xCrystal/Pokemon-Showdown,Legendaryhades/Oblivion,Raina4uberz/Light-server,Sora-Server/Sora,SubZeroo99/Pokemon-Showdown,kuroscafe/Paradox,VoltStorm/Server-pokemon-showdown,MayukhKundu/Mudkip-Server,lFernanl/Lumen-Pokemon-Showdown,Irraquated/Pokemon-Showdown,BasedGod7/PH,Ecuacion/Lumen-Pokemon-Showdown,JellalTheMage/PS-,DalleTest/Pokemon-Showdown,gustavo515/gashoro,Kevinxzllz/PS-Openshift-Server,Mystifi/Exiled,ZeroParadox/ugh,sirDonovan/Pokemon-Showdown,forbiddennightmare/Pokemon-Showdown-1,sirDonovan/Pokemon-Showdown,SilverTactic/Dragotica-Pokemon-Showdown,Legit99/Lightning-Storm-Server,MayukhKundu/Technogear-Final,TheManwithskills/DS,sama2/Viridian-Pokemon-Showdown,TheManwithskills/Creature-phil-boiler,asdfghjklohhnhn/Pokemon-Showdown,Breakfastqueen/advanced,Thiediev/Pokemon-Showdown,Johto-Serverr/Werfin-Boilerplate,panpawn/Pokemon-Showdown,asdfghjklohhnhn/Pokemon-Showdown,MayukhKundu/Flame-Savior,RustServer/Pokemon-Showdown,CorruptedHelix/Pokemon-Showdown,Sora-Server/Sora,Pikachuun/Pokemon-Showdown-SMCMDM,Syurra/Pokemon-Showdown,Kevinxzllz/PS-Openshift-Server,TheManwithskills/New-boiler-test,TogeSR/Lumen-Pokemon-Showdown,k3naan/Pokemon-Showdown,BuzzyOG/Pokemon-Showdown,ehk12/coregit,jumbowhales/Pokemon-Showdown,Flareninja/Sora,Ransei1/Alt,Tesarand/Pokemon-Showdown,NoahVSGamingYT/Pokemon-Showdown,SerperiorBae/Pokemon-Showdown-1,RustServer/Pokemon-Showdown,Ridukuo/Test2,Pikachuun/Pokemon-Showdown,JennyPRO/Jenny,yashagl/yash-showdown,HoeenCoder/SpacialGaze,Enigami/Pokemon-Showdown,SerperiorBae/PokemonShowdown2,hayleysworld/Pokemon-Showdown,Nineage/Showdown-Boilerplate,ehk12/clone,TheManwithskills/Server-2,Ecuacion/Pokemon-Showdown,Checkinator/Pokemon-Showdown,BlazingAura/Showdown-Boilerplate,CreaturePhil/Showdown-Boilerplate,Bryan-0/Pokemon-Showdown,ScottehMax/Pokemon-Showdown,SSJGVegito007/Vegito-s-Server,zek7rom/SpacialGaze,ZestOfLife/FestiveLife,ehk12/coregit,TheManwithskills/DS,Sora-League/Sora,Atwar/ServerClassroom,Flareninja/Lumen-Pokemon-Showdown,PrimalGallade45/Lumen-Pokemon-Showdown,LegendBorned/PS-Boilerplate,SerperiorBae/Bae-Showdown,Gold-Solox/Pokemon-Showdown,Darkshadow6/git-remote-add-scalingo-git-scalingo.com-pokemoonforums,LightningStormServer/Lightning-Storm,Firestatics/Omega-Alpha,SerperiorBae/Bae-Showdown,superman8900/Pokemon-Showdown,brettjbush/Pokemon-Showdown,FakeSloth/Infinite,iFaZe/SliverX,urkerab/Pokemon-Showdown,Irraquated/Pokemon-Showdown,comedianchameleon/servertest1,Checkinator/Pokemon-Showdown,Irraquated/Showdown-Boilerplate,Extradeath/advanced,sama2/Viridian-Pokemon-Showdown,EmmaKitty/Pokemon-Showdown,Articuno-I/Pokemon-Showdown,TheManwithskills/Server,ZeroParadox/BlastBurners,iFaZe/SilverZ,kotarou3/Krister-Pokemon-Showdown,hayleysworld/harmonia,Disaster-Area/Pokemon-Showdown,cadaeic/Pokemon-Showdown,Alpha-Devs/OmegaRuby-Server,KewlStatics/Shit,Neosweiss/Pokemon-Showdown,miahjennatills/Pokemon-Showdown,zczd/enculer,CreaturePhil/Showdown-Boilerplate,Wando94/Pokemon-Showdown,ShowdownHelper/Saffron,anubhabsen/Pokemon-Showdown,bai2/Dropp,ZestOfLife/PSserver,Flareninja/Sora,TheManwithskills/Creature-phil-boiler,kupochu/Pokemon-Showdown,Lord-Haji/SpacialGaze,TheDiabolicGift/Lumen-Pokemon-Showdown,SilverTactic/Showdown-Boilerplate,gustavo515/batata,AustinXII/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,DesoGit/Tsunami_PS,SerperiorBae/Bae-Showdown,hayleysworld/serenityc9,ehk12/bigbangtempclone,AWailOfATail/awoat,megaslowbro1/Showdown-Server-again,SerperiorBae/Pokemon-Showdown,MayukhKundu/Flame-Savior,Ridukuo/Test,SilverTactic/Showdown-Boilerplate,Tesarand/Pokemon-Showdown,TheManwithskills/Dusk--Showdown,Stroke123/POKEMON,Ridukuo/Test,Oiawesome/DPPtServ2,abrulochp/Dropp-Pokemon-Showdown,yashagl/yash-showdown,SerperiorBae/BaeShowdown,EmmaKitty/Pokemon-Showdown,Elveman/RPCShowdownServer,Irraquated/Showdown-Boilerplate,AvinashSwaminathan/Pokelegends,Celecitia/Plux-Pokemon-Showdown,yashagl/pokemon,SerperiorBae/PokemonShowdown2,Atwar/http-server-femalehq.rhcloud.com-80.psim.us-,Zipzapadam/Server,SerperiorBae/BaeShowdown,lFernanl/Zero-Pokemon-Showdown,megaslowbro1/Pokemon-Showdown,Pablo000/aaa,Pikachuun/Pokemon-Showdown-SMCMDM,Guernouille/Pokemon-Showdown,AbsolitoSweep/Absol-server,ankailou/Pokemon-Showdown,kotarou3/Krister-Pokemon-Showdown,KewlStatics/Showdown-Template,MasterFloat/Pokemon-Showdown,Vacate/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,abulechu/Dropp-Pokemon-Showdown,Sora-League/Sora,MayukhKundu/Technogear-Final,TheManwithskills/COC,sama2/Lumen-Pokemon-Showdown,hayleysworld/asdfasdf,Darkshadow6/git-remote-add-scalingo-git-scalingo.com-pokemoonforums,Yggdrasil-League/Yggdrasil,xfix/Pokemon-Showdown,cadaeic/Pokemon-Showdown,InvalidDN/Pokemon-Showdown,DarkSuicune/Kakuja-2.0,KewlStatics/Showdown-Template,comedianchameleon/test,gustavo515/batata,LightningStormServer/Lightning-Storm,SolarisFox/Pokemon-Showdown,catanatron/pokemon-rebalance,Oiawesome/DPPtServ2,TheFenderStory/Pokemon-Showdown,HoeenKid/Pokemon-Showdown-Johto,Lord-Haji/SpacialGaze,ShowdownHelper/Saffron,xfix/Pokemon-Showdown,SerperiorBae/Bae-Showdown-2,MasterFloat/Pokemon-Showdown,Extradeath/psserver,theodelhay/test,TheManwithskills/Server,TbirdClanWish/Pokemon-Showdown,ZeroParadox/ugh,KaitoV4X/Showdown,SerperiorBae/Bae-Showdown-2,Darkshadow6/PokeMoon-Creation,Elveman/RPCShowdownServer,Darkshadow6/git-remote-add-scalingo-git-scalingo.com-pokemoonforums,LustyAsh/EOS-Master,AnaRitaTorres/Pokemon-Showdown,svivian/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,NoahVSGamingYT/Pokemon-Showdown,hayleysworld/serenityserver,Enigami/Pokemon-Showdown,CharizardtheFireMage/Showdown-Boilerplate,UniversalMan12/Universe-Server,urkerab/Pokemon-Showdown,HoeenCoder/SpacialGaze,lFernanl/Mudkip-Server,Fusxfaranto/Pokemon-Showdown,TheManwithskills/Server-2,MayukhKundu/Pokemon-Domain,abulechu/Lumen-Pokemon-Showdown,hayleysworld/serenityserver,Celecitia/Plux-Pokemon-Showdown,MeliodasBH/Articuno-Land,SSJGVegito007/Vegito-s-Server,TheDiabolicGift/Lumen-Pokemon-Showdown,SerperiorBae/Pokemon-Showdown-1,gustavo515/final,MeliodasBH/Articuno-Land,megaslowbro1/Pokemon-Showdown-Server-for-megaslowbro1,DarkSuicune/Pokemon-Showdown,FakeSloth/Infinite,Irraquated/EOS-Master,PS-Spectral/Spectral,xCrystal/Pokemon-Showdown,Kokonoe-san/Glacia-PS,catanatron/pokemon-rebalance,scotchkorean27/Pokemon-Showdown,Sora-Server/Sora,Kokonoe-san/Glacia-PS,AnaRitaTorres/Pokemon-Showdown,BlakJack/Kill-The-Noise,Evil-kun/Pokemon-Showdown,TheManwithskills/serenity,UniversalMan12/Universe-Server,PauLucario/LQP-Server-Showdown,SubZeroo99/Pokemon-Showdown,hayleysworld/asdfasdf,jumbowhales/Pokemon-Showdown,TbirdClanWish/Pokemon-Showdown,lFernanl/Pokemon-Showdown,DB898/theregalias,kuroscafe/Showdown-Boilerplate,Zarel/Pokemon-Showdown,Kill-The-Noise/BlakJack-Boilerplate,Guernouille/Pokemon-Showdown,aakashrajput/Pokemon-Showdown,jd4564/Pokemon-Showdown,Hopenub/Pokemon-Showdown,Alpha-Devs/Alpha-Server,DesoGit/Tsunami_PS,gustavo515/test,ZestOfLife/PSserver,urkerab/Pokemon-Showdown,lFernanl/Mudkip-Server,hayleysworld/serenity,Nineage/Origin,PS-Spectral/Spectral,Evil-kun/Pokemon-Showdown,TheFenderStory/Showdown-Boilerplate,JellalTheMage/Jellals-Server,scotchkorean27/Pokemon-Showdown,comedianchameleon/test,DesoGit/TsunamiPS,svivian/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,Firestatics/Firestatics46,svivian/Pokemon-Showdown,Parukia/Pokemon-Showdown,lAlejandro22/lolipoop,yashagl/pokemon-showdown,panpawn/Gold-Server,bai2/Dropp,CharizardtheFireMage/Showdown-Boilerplate,lAlejandro22/lolipoop,CorruptedHelix/Pokemon-Showdown,LustyAsh/EOS-Master,Psyientist/Showdown-Boilerplate,panpawn/Gold-Server,Darkshadow6/PokeMoon-Creation,abrulochp/Dropp-Pokemon-Showdown,BadSteel/Pokemon-Showdown,LightningStormServer/Lightning-Storm,AvinashSwaminathan/lotus-v3,Parukia/Pokemon-Showdown,AvinashSwaminathan/lotus-v2,KewlStatics/Alliance,KewlStatics/Shit,Flareninja/Hispano-Pokemon-Showdown,superman8900/Pokemon-Showdown,MayukhKundu/Mudkip-Server,TheManwithskills/Server---Thermal,Lauc1an/Perulink-Showdown,Sora-League/Sora,QuiteQuiet/Pokemon-Showdown,javi501/Lumen-Pokemon-Showdown,abrulochp/Lumen-Pokemon-Showdown,xfix/Pokemon-Showdown,Vacate/Pokemon-Showdown,Alpha-Devs/Alpha-Server,brettjbush/Pokemon-Showdown,kubetz/Pokemon-Showdown,Irraquated/Pokemon-Showdown,arkanox/MistShowdown,ScottehMax/Pokemon-Showdown,azum4roll/Pokemon-Showdown,Adithya4Uberz/The-Tsunami-League,Tesarand/Pokemon-Showdown,SilverTactic/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,KewlStatics/Pokeindia-Codes,Firestatics/Firestatics46,Luobata/Pokemon-Showdown,Breakfastqueen/advanced,Firestatics/omega,yashagl/pokemon,DarkSuicune/Pokemon-Showdown,DesoGit/Tsunami_PS,TheFenderStory/Pokemon-Showdown,psnsVGC/Wish-Server,Bryan-0/Pokemon-Showdown,SkyeTheFemaleSylveon/Mudkip-Server,Kill-The-Noise/BlakJack-Boilerplate,azum4roll/Pokemon-Showdown,EienSeiryuu/Pokemon-Showdown,danpantry/Pokemon-Showdown,SerperiorBae/Bae-Showdown-2,aakashrajput/Pokemon-Showdown,Stroke123/POKEMON,Adithya4Uberz/The-Tsunami-League,AustinXII/Pokemon-Showdown,comedianchameleon/servertest1,Raina4uberz/Light-server,KewlStatics/Alliance,xfix/Pokemon-Showdown,JellalTheMage/Jellals-Server,Pikachuun/Touhoumon-Showdown,Pokemon-Devs/Pokemon-Showdown,TheManwithskills/serenity,Articuno-I/Pokemon-Showdown,Git-Worm/City-PS,TheManwithskills/COC,zczd/enculer,megaslowbro1/Pokemon-Showdown-Server-for-megaslowbro1,BuzzyOG/Pokemon-Showdown,ZestOfLife/FestiveLife,Hidden-Mia/Roleplay-PS,Extradeath/psserver,Wando94/Spite,xfix/Pokemon-Showdown,sama2/Universe-Pokemon-Showdown,TogeSR/Lumen-Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,Flareninja/Showdown-Boilerplate,Irraquated/EOS-Master,xCrystal/Pokemon-Showdown,SolarisFox/Pokemon-Showdown,theodelhay/test,lFernanl/Pokemon-Showdown,Breakfastqueen/advanced,k3naan/Pokemon-Showdown,DarkSuicune/Kakuja-2.0,TheManwithskills/Server-2,Pikachuun/Joimmon-Showdown,PrimalGallade45/Dropp-Pokemon-Showdown,Volcos/SpacialGaze,sama2/Dropp-Pokemon-Showdown,SilverTactic/Pokemon-Showdown,hayleysworld/Showdown-Boilerplate,Zarel/Pokemon-Showdown,SilverTactic/Dragotica-Pokemon-Showdown,Ecuacion/Pokemon-Showdown,CrestfallPS/Pokemon-Showdown,Neosweiss/Pokemon-Showdown,javi501/Lumen-Pokemon-Showdown,Kenny-/Pokemon-Showdown,AWailOfATail/awoat,comedianchameleon/test,MasterFloat/LQP-Server-Showdown,Flareninja/Hispano-Pokemon-Showdown,AvinashSwaminathan/lotus,megaslowbro1/Showdown-Server-again,MayukhKundu/Technogear,Werfin96/Ultimate,Wando94/Pokemon-Showdown,ehk12/bigbangtempclone,danpantry/Pokemon-Showdown,panpawn/Gold-Server,piiiikachuuu/Pokemon-Showdown,Flareninja/Lumen-Pokemon-Showdown,panpawn/Pokemon-Showdown,AbsolitoSweep/Absol-server,megaslowbro1/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,jd4564/Pokemon-Showdown,Chespin14/Custom-Platform-Pokemon-Showdown,TheManwithskills/Dusk--Showdown,BlazingAura/Showdown-Boilerplate,Arcticblast/Pokemon-Showdown,SkyeTheFemaleSylveon/Mudkip-Server,TheFenderStory/Showdown-Boilerplate,TheDiabolicGift/Showdown-Boilerplate,Legit99/Lightning-Storm-Server,ShowdownHelper/Saffron,ehk12/clone,jumbowhales/Pokemon-Showdown,Ransei1/Alt,Atwar/server-epilogueleague.rhcloud.com,HoeenCoder/SpacialGaze,Alpha-Devs/OmegaRuby-Server,piiiikachuuu/Pokemon-Showdown,lFernanl/Lumen-Pokemon-Showdown,JennyPRO/Jenny,Flareninja/Pokemon-Showdown,zek7rom/SpacialGaze,yashagl/pokecommunity,SkyeTheFemaleSylveon/Pokemon-Showdown,CreaturePhil/Pokemon-Showdown,gustavo515/final,PrimalGallade45/Lumen-Pokemon-Showdown,svivian/Pokemon-Showdown,PauLucario/LQP-Server-Showdown,Firestatics/omega,hayleysworld/serenityc9,psnsVGC/Wish-Server,Git-Worm/City-PS,sama2/Dropp-Pokemon-Showdown,SerperiorBae/Pokemon-Showdown-1,hayleysworld/harmonia,KaitoV4X/Showdown,Extradeath/advanced,PS-Spectral/Spectral,SerperiorBae/Pokemon-Showdown,DB898/theregalias,Zipzapadam/Server,ZeroParadox/BlastBurners,Hidden-Mia/Roleplay-PS,anubhabsen/Pokemon-Showdown,Yggdrasil-League/Yggdrasil,aakashrajput/Pokemon-Showdown,Atwar/server-epilogueleague.rhcloud.com,Ecuacion/Lumen-Pokemon-Showdown,Lord-Haji/SpacialGaze,ankailou/Pokemon-Showdown,svivian/Pokemon-Showdown,DesoGit/TsunamiPS,yashagl/pokecommunity,sama2/Universe-Pokemon-Showdown,hayleysworld/Showdown-Boilerplate,Ridukuo/Test2,yashagl/pokemon-showdown,Adithya4Uberz/KTN,Lauc1an/Perulink-Showdown,Syurra/Pokemon-Showdown,Volcos/SpacialGaze,hayleysworld/serenity,kuroscafe/Showdown-Boilerplate,Gold-Solox/Pokemon-Showdown,TheManwithskills/New-boiler-test,Zarel/Pokemon-Showdown,MayukhKundu/Technogear,Parukia/Pokemon-Showdown,MayukhKundu/Pokemon-Domain,KewlStatics/Pokeindia-Codes,Flareninja/Pokemon-Showdown-1,Kill-The-Noise/BlakJack-Boilerplate,abulechu/Dropp-Pokemon-Showdown,forbiddennightmare/Pokemon-Showdown-1,abrulochp/Lumen-Pokemon-Showdown,BuzzyOG/Pokemon-Showdown,EienSeiryuu/Pokemon-Showdown,LegendBorned/PS-Boilerplate,Pikachuun/Pokemon-Showdown,JellalTheMage/PS-,Enigami/Pokemon-Showdown,Pikachuun/Joimmon-Showdown,UniversalMan12/Universe-Server,SerperiorBae/BaeShowdown,MasterFloat/LQP-Server-Showdown,HoeenCoder/SpacialGaze,BadSteel/Omega-Pokemon-Showdown,sama2/Lumen-Pokemon-Showdown,Mystifi/Exiled,Firestatics/Omega-Alpha,Pokemon-Devs/Pokemon-Showdown,gustavo515/gashoro,SkyeTheFemaleSylveon/Pokemon-Showdown,Flareninja/Pokemon-Showdown-1,Pablo000/aaa