help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how use random in array


From: Ian McCallion
Subject: Re: how use random in array
Date: Tue, 18 Sep 2018 16:30:57 +0100

a{1+floor(rand*3))

Ian
On Tue, 18 Sep 2018 at 14:27, LucaLuca <address@hidden> wrote:
>
> hi,
> i 've array  a=[3,4,5]
>
> i want to choise an element of a with random instruction
>
>
> how i do it?
>
>
>
>
>
>
>
> --
> Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]