1.0.21 • Published 9 months ago

randommoon.js v1.0.21

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

randommoon.js

A simple JavaScript library for generating random values.

license

CHANGELOG

Installation:

npm:

npm version

npm i randommoon.js

How to use:

Import specific functions:

CommonJS:

const {Zeros} = require("randommoon.js");

import Statement:

import {Zeros} from "randommoon.js";

*Also import All functions with default as randommoon:

const randommoon = require("randommoon.js");

Array And 2d Array structure:

const shape = [rows,cols] // 2D Array structure
const shape = [rows] // 1D Array structure

example:

const var1 = Zeros(3); 
console.log(var1.data); // Output: [0, 0, 0]
console.log(var1.shape) // Output: [3,0]

With 2D array:

const var2 = Zeros([3, 2]); 
console.log(var2.data); // Output: [[0, 0], [0, 0], [0, 0]]
console.log(var1.shape) // Output: [3,2]
1.0.21

9 months ago

1.0.20

9 months ago

1.0.16

10 months ago

1.0.15

10 months ago

1.0.1

10 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.12

10 months ago

1.0.0

12 months ago