Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

randpermutation (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: statistics

Requires: MathScript RT Module

Syntax

c = randpermutation(a)

Legacy Name: randperm

Description

Generates a random permutation of natural numbers.

Examples

Inputs

Name Description
a Specifies a positive integer.

Outputs

Name Description
c Returns a random permutation of the integers from 1 to a. c is a row vector.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

A = 11
C = randpermutation(A)

Related Topics

rand
randnormal
random


 

 Was this document helpful?  submit
  Helpful Not Helpful