# [−][src]Trait rand::distributions::IndependentSample

    pub trait IndependentSample<Support>: Sample<Support> {
        fn ind_sample<R: Rng>(&self, _: &mut R) -> Support;
    }

`Sample`s that do not require keeping track of state.

Since no state is recorded, each sample is (statistically) independent of all others, assuming the `Rng` used has this property.

## Required methods

### `fn ind_sample<R: Rng>(&self, _: &mut R) -> Support`

Generate a random value.

Loading content...

## Implementors

### `impl IndependentSample<f64> for Gamma`[src]

#### `fn ind_sample<R: Rng>(&self, rng: &mut R) -> f64`[src]

### `impl IndependentSample<f64> for ChiSquared`[src]

#### `fn ind_sample<R: Rng>(&self, rng: &mut R) -> f64`[src]

### `impl IndependentSample<f64> for FisherF`[src]

#### `fn ind_sample<R: Rng>(&self, rng: &mut R) -> f64`[src]

### `impl IndependentSample<f64> for StudentT`[src]

#### `fn ind_sample<R: Rng>(&self, rng: &mut R) -> f64`[src]

### `impl IndependentSample<f64> for Normal`[src]

#### `fn ind_sample<R: Rng>(&self, rng: &mut R) -> f64`[src]

### `impl IndependentSample<f64> for LogNormal`[src]

#### `fn ind_sample<R: Rng>(&self, rng: &mut R) -> f64`[src]

### `impl IndependentSample<f64> for Exp`[src]

#### `fn ind_sample<R: Rng>(&self, rng: &mut R) -> f64`[src]

### `impl<'a, T: Clone> IndependentSample<T> for WeightedChoice<'a, T>`[src]

#### `fn ind_sample<R: Rng>(&self, rng: &mut R) -> T`[src]

### `impl<Sup: SampleRange> IndependentSample<Sup> for Range<Sup>`[src]

#### `fn ind_sample<R: Rng>(&self, rng: &mut R) -> Sup`[src]

### `impl<Sup: Rand> IndependentSample<Sup> for RandSample<Sup>`[src]

#### `fn ind_sample<R: Rng>(&self, rng: &mut R) -> Sup`[src]

Loading content...

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)