Current collected state Current
Observed since 20 Oct, 19:11 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Create 2d Matrix
A simple yet powerful TypeScript library for generating and displaying 2D matrices with CLI table formatting.
npm install 2dmatrix
import mx from "2dmatrix";
mx.openCLI = true; // Enable CLI table display
mx.tableWidth = 20; // Set column width
const createRandomMatrix = mx.randomMx(2, 3, 50);
console.log(createRandomMatrix);
╔══════╤══════╤══════╗
║ 12 │ 34 │ 23 ║
║ (1,1)│ (1,2)│ (1,3)║
╟──────┼──────┼──────╢
║ 45 │ 32 │ 11 ║
║ (2,1)│ (2,2)│ (2,3)║
╚══════╧══════╧══════╝
randomMx(rows: number, cols: number, range: number): RandomMxGenerates a random matrix with given rows and columns, and fills it with random numbers up to the specified range.
rows - Number of rows in the matrix.cols - Number of columns in the matrix.range - Maximum value for random numbers.{
randomMatrix: number[][];
coordinates: Coordinate[];
matrixSize: string;
}
This project is licensed under the MIT License - see the LICENSE file for details.
Developed by Hamza Atmaca.
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:11 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:f33d313636b42f7aeac441ea61deb927aa21757163f4f9c06d2bbcef4c41f056