Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkilgour committed Nov 13, 2015
1 parent 98b8426 commit 1414704
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Expand Up @@ -18,7 +18,7 @@ You can use Chancer on the server side with [Node.js](node) and npm:
npm install chancer
```

On the client side, you can include Chancer in your page (found in [build/chancer.js](build/chancer.js)):
On the client side, you can include *Chancer* in your page (found in [build/chancer.js](build/chancer.js)):

```html
<script src="chancer.js"></script>
Expand All @@ -42,6 +42,24 @@ Generates a floating-point number between 0 and 1
chancer.random(); // 0.32831766246818006
```

### chancer.float( min, max )
Generates a floating-point number between *min* (inclusive) and *max* (exclusive)
**min:** *(float)* Minimum inclusive number
**max:** *(float)* Maximum exclusive number
**return:** *(float)* Returns the floating point number
```js
chancer.float(1, 10); // 2.794354454614222
```

### chancer.int( min, max )
Generates an integer between *min* (inclusive) and *max* (inclusive)
**min:** *(float)* Minimum inclusive number
**max:** *(float)* Maximum inclusive number
**return:** *(integer)* Returns the integer number
```js
chancer.int(1, 10); // 3
```

## Browser Support
Tested in the following browsers

Expand Down

0 comments on commit 1414704

Please sign in to comment.