Refactor check_random_state and adapt doctests (skip some for np 1.16.5)
Refactor check_random_state and adapt doctests (skip some for np 1.16.5)

e-q/scipy,perimosocordiae/scipy,e-q/scipy,vigna/scipy,mdhaber/scipy,zerothi/scipy,ilayn/scipy,endolith/scipy,endolith/scipy,andyfaff/scipy,perimosocordiae/scipy,rgommers/scipy,vigna/scipy,matthew-brett/scipy,anntzer/scipy,ilayn/scipy,Stefan-Endres/scipy,grlee77/scipy,mdhaber/scipy,WarrenWeckesser/scipy,matthew-brett/scipy,Stefan-Endres/scipy,Stefan-Endres/scipy,zerothi/scipy,perimosocordiae/scipy,anntzer/scipy,scipy/scipy,Eric89GXL/scipy,rgommers/scipy,endolith/scipy,endolith/scipy,Stefan-Endres/scipy,grlee77/scipy,ilayn/scipy,WarrenWeckesser/scipy,Eric89GXL/scipy,tylerjereddy/scipy,tylerjereddy/scipy,WarrenWeckesser/scipy,endolith/scipy,scipy/scipy,andyfaff/scipy,zerothi/scipy,mdhaber/scipy,vigna/scipy,scipy/scipy,grlee77/scipy,mdhaber/scipy,perimosocordiae/scipy,mdhaber/scipy,anntzer/scipy,grlee77/scipy,andyfaff/scipy,andyfaff/scipy,scipy/scipy,matthew-brett/scipy,e-q/scipy,e-q/scipy,endolith/scipy,rgommers/scipy,scipy/scipy,Eric89GXL/scipy,WarrenWeckesser/scipy,anntzer/scipy,mdhaber/scipy,zerothi/scipy,ilayn/scipy,perimosocordiae/scipy,andyfaff/scipy,grlee77/scipy,Stefan-Endres/scipy,ilayn/scipy,rgommers/scipy,anntzer/scipy,ilayn/scipy,andyfaff/scipy,matthew-brett/scipy,scipy/scipy,zerothi/scipy,vigna/scipy,Eric89GXL/scipy,vigna/scipy,WarrenWeckesser/scipy,Eric89GXL/scipy,anntzer/scipy,tylerjereddy/scipy,tylerjereddy/scipy,Stefan-Endres/scipy,Eric89GXL/scipy,rgommers/scipy,tylerjereddy/scipy,WarrenWeckesser/scipy,matthew-brett/scipy,e-q/scipy,perimosocordiae/scipy,zerothi/scipy