Skip to content
JS
Package

@stdlib/random-sample

Sample elements from an array-like object.

v0.2.2, 8 Feb 2026Apache-2.0CommonJSTypes: BundledNumbers and maths
$ npm install @stdlib/random-sample

Key numbers

As of 25 Sept 2026
Weekly downloads
5.3k
- over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
15
Direct, from package.json
Last release
7 months ago
v0.2.2
GitHub stars
2
0 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
10

No weekly download data in the snapshot.

5,290 downloads last week, 18,642 in the last month. No 52-week series has been fetched yet.

Releases, last 12 months
-
Latest version
0.2.2, 8 Feb 20267 months ago
First published
-
Last push to GitHub
16 Aug 202640 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
10
Dependents on npm
2

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=0.10.0
Runtimes
-
Unpacked size (npm)
87 kB
Dependencies (15)
@stdlib/utils-copy@stdlib/string-format@stdlib/array-base-copy@stdlib/assert-is-string@stdlib/assert-is-boolean@stdlib/random-base-mt19937@stdlib/assert-is-array-like@stdlib/assert-is-plain-object@stdlib/error-tools-fmtprodmsg@stdlib/assert-has-own-property@stdlib/math-base-special-floor@stdlib/assert-is-typed-array-like@stdlib/assert-is-nonnegative-integer@stdlib/assert-is-unity-probability-array@stdlib/utils-define-nonenumerable-read-only-property
npm install @stdlib/random-sample
  • jsDelivrhttps://cdn.jsdelivr.net/npm/@stdlib/random-sample@0.2.2/
  • unpkghttps://unpkg.com/@stdlib/random-sample@0.2.2/
  • esm.shhttps://esm.sh/@stdlib/random-sample@0.2.2
PackageWeekly downloadsGzipLast releaseModuleComparison
math-clamp-x9.3k-7 years agoESM + CommonJS-
Sources: npm registry, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 5290 < 10000.