Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
add first example
  • Loading branch information
alexkilgour committed Nov 13, 2015
1 parent eb08c4d commit 98b8426
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Expand Up @@ -29,12 +29,19 @@ Usage

In Node.js you can include *Chancer* in your script by using require:

```
```js
var chancer = require('chancer');
```

If you're including via a ```<script>``` tag, ```chancer``` is available as a global variable.

### chancer.random()
Generates a floating-point number between 0 and 1
**return:** *(float)* Returns the floating point number
```js
chancer.random(); // 0.32831766246818006
```

## Browser Support
Tested in the following browsers

Expand Down

0 comments on commit 98b8426

Please sign in to comment.