Socket
Book a DemoInstallSign in
Socket

random-tendentious

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

random-tendentious

random tendentious

1.0.3
latest
Source
npmnpm
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

RANDOM-TENDENTIOUS

Create a random function for a particular type of output. Receiving a function to transform the random and a limit too, return a ready function to use.

A list of functions saved in the module

simply set the parameter f a string with your name. If you want to use a specific function, just set the function to f.

E, PI, LN2, LN10, LOG2E, SQRT2, LOG10E, SQRT1_2, abs, acos, acosh,
asin, asinh, atan, atan2, atanh, cbrt, ceil, clz32, cos, cosh, exp,
expm1, floor, fround, hypot, imul, log, log10, log1p, log2, round,
sign, sin, sinh, sqrt, tan, tanh, trunc

I will help if you have any difficulty =)

Contact me by github:heyderpd. I'll be glad to help you.

Thanks for npm~lucasmreis

Example:

tendentious = require('random-tendentious')

const randomCos = tendentious({f: 'cos'})

const limitsA = [1, 10]
const randomLimits = tendentious({l: limitsA})

const fx = x => 2 * x + 10
const limitsB = [21, 42]
const randomFx = tendentious({f: fx, l: limitsB})

Keywords

random

FAQs

Package last updated on 23 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.