make sure RandomState.normal(size=) argument is an int; avoids deprecation warning on new numpy