jeudi 19 avril 2018

Julia - Random number in different intervals

Hello

I would like create an array with numbers from different intervals.

For example, with the following code:

using Distributions

A = rand(Uniform(1,10),1,20)

"A" contains 20 numbers between 1 and 10.

I would like create "B" where "B" contains 20 numbers between 1 and 4, or between 6 and 10 but not between 4 and 6.

Is it possible ?

Thank you




Aucun commentaire:

Enregistrer un commentaire