aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/pythran/pythran/pythonic/include/random/shuffle.hpp
blob: d5db47aa42faa5b6493e4157f4ca903ae9cdf8cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef PYTHONIC_INCLUDE_RANDOM_SHUFFLE_HPP
#define PYTHONIC_INCLUDE_RANDOM_SHUFFLE_HPP

#include "pythonic/include/random/random.hpp"
#include "pythonic/include/types/NoneType.hpp"
#include "pythonic/include/utils/functor.hpp"

PYTHONIC_NS_BEGIN

namespace random
{
  template <class T>
  types::none_type shuffle(T &seq);
  template <class T, class function>
  types::none_type shuffle(T &seq, function &&randf);

  DEFINE_FUNCTOR(pythonic::random, shuffle)
} // namespace random
PYTHONIC_NS_END

#endif