# Random

This block is a random wave generator. Each output component takes piecewise constant random values. Each time an event is received on the input event port, the outputs take new independent random values.

## Library

SignalGenerators

## Description

The Random block is a random value generator. Each output component takes piecewise constant random values. Each time an event is received on the input event port, the outputs take new independent random values.

Output port size is given by the size of A and B matrices. You can choose uniform distribution (default) or normal distribution.

In Uniform distribution, the range is defined as [A, A+B].

In Normal distribution A is mean and B is the deviation.

## Parameters

Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|

| Distribution | String | 'Uniform' | |

| A | First parameter for the distribution (lower value for uniform distribution, mean value for normal distribution). A real matrix, same size as matrix B. Default value: 0. | Matrix | |

| B | Second parameter for the distribution (range value for uniform distribution, standard deviation for normal distribution). A real matrix, same size as matrix A. Default value: 1. | Matrix | |

| Seed (-1 for automatic) | Seed for the random generator (scalar). seed must be an integer between 0 and 2^32-1. Negative value for seed means automatic selection. | Scalar |

## Ports

Name | Type | Description | IO Type | Number |
---|---|---|---|---|

| explicit | output | 1 | |

| activation | input | 1 |

## Advanced Properties

Name | Value | Description |
---|---|---|

| no | Standard Mode is activated. |

| no | |

| no | |

| no | |

| no | |

| yes |