Updated random functions
Updated random functions

For Windows, `rand_s` has been available since Windows XP (see https://msdn.microsoft.com/en-us/library/sxtz2fa8.aspx). It gives a better quality random number in a larger range (the max is actually `0xffffffff`).
tmm1/Nim,bvssvni/Nim,jsanjuas/Nim,nanoant/Nim,nanoant/Nim,jsanjuas/Nim,judofyr/Nim,singularperturbation/Nim,endragor/Nim,judofyr/Nim,judofyr/Nim,russpowers/Nim,fredericksilva/Nim,fmamud/Nim,Matt14916/Nim,msmith491/Nim,judofyr/Nim,nimLuckyBull/Nim,bvssvni/Nim,nanoant/Nim,JCavallo/Nim,xland/Nim,zachaysan/Nim,haiodo/Nim,Senketsu/Nim,jsanjuas/Nim,bvssvni/Nim,tmm1/Nim,douglas-larocca/Nim,nimLuckyBull/Nim,sarvex/Nim-lang,Matt14916/Nim,JCavallo/Nim,Dhertz/Nim,judofyr/Nim,Senketsu/Nim,nanoant/Nim,nafsaka/Nim,nimLuckyBull/Nim,reactormonk/nim,douglas-larocca/Nim,judofyr/Nim,dom96/Nim,jsanjuas/Nim,xland/Nim,Matt14916/Nim,bvssvni/Nim,sarvex/Nim-lang,reactormonk/nim,haiodo/Nim,nimLuckyBull/Nim,sferik/Nim,greyanubis/Nim,haiodo/Nim,xland/Nim,dom96/Nim,jfhg/Nim,msmith491/Nim,dom96/Nim,jfhg/Nim,haiodo/Nim,Matt14916/Nim,JCavallo/Nim,tmm1/Nim,fmamud/Nim,Salafit/Nim,zachaysan/Nim,douglas-larocca/Nim,mbaulch/Nim,Salafit/Nim,msmith491/Nim,singularperturbation/Nim,douglas-larocca/Nim,reactormonk/nim,tmm1/Nim,endragor/Nim,Matt14916/Nim,jfhg/Nim,greyanubis/Nim,nimLuckyBull/Nim,haiodo/Nim,sferik/Nim,Senketsu/Nim,xland/Nim,douglas-larocca/Nim,nafsaka/Nim,tulayang/Nim,fredericksilva/Nim,sferik/Nim,sferik/Nim,greyanubis/Nim,Senketsu/Nim,dom96/Nim,nanoant/Nim,msmith491/Nim,singularperturbation/Nim,reactormonk/nim,mbaulch/Nim,reactormonk/nim,russpowers/Nim,dom96/Nim,tulayang/Nim,mbaulch/Nim,endragor/Nim,bvssvni/Nim,douglas-larocca/Nim,bvssvni/Nim,tulayang/Nim,endragor/Nim,Senketsu/Nim,Dhertz/Nim,jfhg/Nim,Senketsu/Nim,endragor/Nim,greyanubis/Nim,fredericksilva/Nim,tulayang/Nim,greyanubis/Nim,fredericksilva/Nim,mbaulch/Nim,fmamud/Nim,JCavallo/Nim,russpowers/Nim,msmith491/Nim,zachaysan/Nim,dom96/Nim,greyanubis/Nim,sarvex/Nim-lang,fredericksilva/Nim,russpowers/Nim,Salafit/Nim,fmamud/Nim,fmamud/Nim,haiodo/Nim,bvssvni/Nim,Matt14916/Nim,reactormonk/nim,sferik/Nim,Dhertz/Nim,fredericksilva/Nim,fmamud/Nim,jfhg/Nim,xland/Nim,russpowers/Nim,sarvex/Nim-lang,sferik/Nim,douglas-larocca/Nim,Dhertz/Nim,endragor/Nim,fredericksilva/Nim,singularperturbation/Nim,douglas-larocca/Nim,tmm1/Nim,mbaulch/Nim,zachaysan/Nim,Salafit/Nim,sarvex/Nim-lang,judofyr/Nim,sarvex/Nim-lang,judofyr/Nim,russpowers/Nim,haiodo/Nim,nimLuckyBull/Nim,fmamud/Nim,jsanjuas/Nim,Senketsu/Nim,Dhertz/Nim,mbaulch/Nim,jsanjuas/Nim,sferik/Nim,nanoant/Nim,xland/Nim,nafsaka/Nim,zachaysan/Nim,Dhertz/Nim,Salafit/Nim,fredericksilva/Nim,nafsaka/Nim,sarvex/Nim-lang,Matt14916/Nim,JCavallo/Nim,tulayang/Nim,Salafit/Nim,jsanjuas/Nim,reactormonk/nim,nafsaka/Nim,dom96/Nim,jfhg/Nim,msmith491/Nim,sferik/Nim,singularperturbation/Nim,nanoant/Nim,russpowers/Nim,jfhg/Nim,tmm1/Nim,nafsaka/Nim,JCavallo/Nim,greyanubis/Nim,reactormonk/nim,Dhertz/Nim,mbaulch/Nim,singularperturbation/Nim,singularperturbation/Nim,tmm1/Nim,nafsaka/Nim,tulayang/Nim,endragor/Nim,zachaysan/Nim,zachaysan/Nim,nimLuckyBull/Nim,msmith491/Nim,Salafit/Nim,xland/Nim,JCavallo/Nim