fork download
  1. import numpy as np
  2.  
  3. # Create a 1D array of 10 random real numbers between 0 and 20
  4. array = np.random.uniform(low=0, high=20, size=10)
  5.  
  6. print(array)
Success #stdin #stdout 0.2s 29036KB
stdin
Standard input is empty
stdout
[12.5722869  16.09227719  2.22740126  3.37609863  7.2938303  12.15137382
  8.80470543 12.63922167 10.16643866  5.24412065]