1 #ifndef PYTHONIC_NUMPY_RANDOM_RAND_HPP
2 #define PYTHONIC_NUMPY_RANDOM_RAND_HPP
3 
4 #include "pythonic/include/numpy/random/rand.hpp"
5 
6 #include "pythonic/numpy/random/random.hpp"
7 #include "pythonic/types/ndarray.hpp"
8 #include "pythonic/types/tuple.hpp"
9 #include "pythonic/utils/functor.hpp"
10 
11 PYTHONIC_NS_BEGIN
12 namespace numpy
13 {
14   namespace random
15   {
16 
17     template <class... T>
rand(T...shape)18     types::ndarray<double, types::array<long, sizeof...(T)>> rand(T... shape)
19     {
20       return random(types::array<long, sizeof...(T)>{{shape...}});
21     }
22 
rand()23     double rand()
24     {
25       return random();
26     }
27   }
28 }
29 PYTHONIC_NS_END
30 
31 #endif
32