private object LoadRandom() { int rows, cols; bool symmetric; GetSparseRandomSize(cbRandom.Text, out rows, out cols, out symmetric); if (typeName == "Double") { return(MatrixHelper.CreateRandom(typeName, rows, cols, 0.05, symmetric)); } else { return(MatrixHelper.CreateRandom(typeName, rows, cols, 0.05, symmetric)); } }