use latest core.matrix dep
add random namespace with sampling functions
add random tests and docs