api / koma / randn

randn

fun randn(rows:Int, cols:Int):Matrix<Double>

Creates an matrix filled with unit normal random numbers

fun <T> randn(rows:Int, cols:Int, dtype:MatrixType<T>):Matrix<T> fun <T> ~~randn~~(rows:Int, cols:Int, seed:Long, dtype:MatrixType<T>):Matrix<T> Deprecated: Call setSeed and randn separately

fun ~~randn~~(rows:Int, cols:Int, seed:Long):Matrix<Double> Deprecated: Call setSeed and randn separately

Creates an matrix filled with unit normal random numbers, using the given seed for the RNG. Subsequent calls with the same seed will produce identical numbers.