The uniform distribution would probably do what you are asking.
np.random.uniform(5,10) # A single value
np.random.uniform(5,10,[2,3]) # A 2x3 array
More Related Contents:
- Sorting arrays in NumPy by column
- Moving average or running mean
- How to do exponential and logarithmic curve fitting in Python? I found only polynomial fitting
- How to smooth a curve in the right way?
- How to solve a pair of nonlinear equations using Python?
- How to normalize a NumPy array to within a certain range?
- Save / load scipy sparse csr_matrix in portable data format
- Find matching rows in 2 dimensional numpy array
- numpy.where() detailed, step-by-step explanation / examples [closed]
- Resampling a numpy array representing an image
- How to plot empirical cdf (ecdf)
- Most efficient way to sort an array into bins specified by an index array?
- Get coordinates of local maxima in 2D array above certain value
- Python baseline correction library
- how to annotate heatmap with text in matplotlib
- Linear regression of arrays containing NANs in Python/Numpy
- How to filter numpy array by list of indices?
- Error “Import Error: No module named numpy” on Windows
- Fitting a closed curve to a set of points
- Generating Discrete random variables with specified weights using SciPy or NumPy
- How to get the indices list of all NaN value in numpy array?
- Max in a sliding window in NumPy array
- setting spacing between grouped bar plots in matplotlib
- Compute divergence of vector field using python
- Compute a confidence interval from sample data assuming unknown distribution
- Python 4D linear interpolation on a rectangular grid
- Consecutive, Overlapping Subsets of Array (NumPy, Python)
- scipy convolve2d outputs wrong values
- Computing cross-correlation function?
- Understanding scipy deconvolve