Skip to content

Commit afcb37d

Browse files
committed
Update examples
1 parent 0030253 commit afcb37d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

lib/node_modules/@stdlib/datasets/month-names-en/README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ var list = months();
6767
<!-- eslint no-undef: "error" -->
6868

6969
```javascript
70-
var floor = require( '@stdlib/math/base/special/floor' );
71-
var randu = require( '@stdlib/random/base/randu' );
70+
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' );
7271
var months = require( '@stdlib/datasets/month-names-en' );
7372

7473
var list;
@@ -81,7 +80,7 @@ len = list.length;
8180

8281
// Select random months from the list...
8382
for ( i = 0; i < 100; i++ ) {
84-
idx = floor( randu()*len );
83+
idx = discreteUniform( 0, len );
8584
console.log( list[ idx ] );
8685
}
8786
```

lib/node_modules/@stdlib/datasets/month-names-en/examples/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818

1919
'use strict';
2020

21-
var floor = require( '@stdlib/math/base/special/floor' );
22-
var randu = require( '@stdlib/random/base/randu' );
21+
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' );
2322
var months = require( './../lib' );
2423

2524
var list;
@@ -32,6 +31,6 @@ len = list.length;
3231

3332
// Select random months from the list...
3433
for ( i = 0; i < 100; i++ ) {
35-
idx = floor( randu()*len );
34+
idx = discreteUniform( 0, len );
3635
console.log( list[ idx ] );
3736
}

0 commit comments

Comments
 (0)