From 12:00 PM - 4:00 PM CST on Thursday, October 18, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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 ARTICLE HELPFUL?

Not Helpful