Auto-initialize random if necessary
Use 1/n-1 record splitting instead of 0/n
Merge branch 'master' into visual-studio-2010