fork download
  1. import numpy as np
  2.  
  3. # Set the random seed for reproducibility (optional)
  4. np.random.seed(0)
  5.  
  6. # Generate an array of 10 random real numbers between 0 and 20
  7. random_array = np.random.uniform(0, 20, 10)
  8.  
  9. print(random_array)
Success #stdin #stdout 0.13s 28984KB
stdin
Standard input is empty
stdout
[10.97627008 14.30378733 12.05526752 10.89766366  8.47309599 12.91788226
  8.75174423 17.83546002 19.27325521  7.66883038]