HP Prime for All

English  Русский 

Syntax

randperm(Intg(n))

Description

Returns a random permutation of [0,1,2,..,n-1]

Example

randperm(4) returns [2,1,3,0]

randperm — Discussion