# candies

> A node.js package to generate a sample of length n.

Latest version **0.1.6** (published 2015-09-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install candies
pnpm add candies
yarn add candies
bun add candies
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2015-09-29 |
| First published | 2015-05-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | nssmmn |
| Maintainers | nssmmn |
| Keywords | probability, statistics, sample, random |

## Links

- npm: https://www.npmjs.com/package/candies
- Repository: https://github.com/nssmmn/candies
- Issues: https://github.com/nssmmn/candies/issues
- npm.io page: https://npm.io/package/candies

## Recent versions

- 0.1.6 (latest) — 2015-09-29
- 0.1.5 — 2015-09-27
- 0.1.4 — 2015-09-20
- 0.1.3 — 2015-06-01
- 0.1.2 — 2015-05-24
- 0.1.1 — 2015-05-21
- 0.1.0 — 2015-05-21
- 0.0.1 — 2015-05-19

## README

![Candies Logo](/candies-logo.png)

# Candies
A node.js package to generate a sample of length n.

## Usage
```
npm install candies
```

```js
var C = require('candies');

var n = 10,
    values = ['mint','orange','strawberry'],
    weight = [.2,.3,.5];

var sample = C.urn(n,values,weight);
// generate randomly a sample of 10.
```

For more details [see the wiki](https://github.com/nssmmn/candies/wiki).

---
_Source: https://npm.io/package/candies · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
