Ignore build directory
Random number generator accepts type num instead of double
Simplify function xinterp