random-float

WebJar for random-float

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

random-float
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

random-float
WebJar for random-float
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/random-float

Download random-float

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/random-float/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>random-float</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/random-float/
implementation 'org.webjars.npm:random-float:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/random-float/
implementation ("org.webjars.npm:random-float:1.0.0")
'org.webjars.npm:random-float:jar:1.0.0'
<dependency org="org.webjars.npm" name="random-float" rev="1.0.0">
  <artifact name="random-float" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='random-float', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "random-float" % "1.0.0"
[org.webjars.npm/random-float "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

random-float

Generate a random float

Install

$ npm install random-float

Usage

const randomFloat = require('random-float');

randomFloat(5);
//=> 4.401887938147411

randomFloat(10, 100);
//=> 72.34217455144972

API

randomFloat(maximum?)

Returns an float from 0 to maximum.

randomFloat(minimum, maximum)

Returns an float from minimum to maximum.

minimum

Type: number
Default: 0

Minimum float to return.

maximum

Type: number
Default: 1

Maximum float to return.

Related

Versions

Version
1.0.0