From 6f65f892dc1f6a275a9651209f9a6e2c19ee5391 Mon Sep 17 00:00:00 2001 From: JacksonMateus <48231382+JacksonMateus@users.noreply.github.com> Date: Fri, 18 Oct 2019 15:35:31 -0300 Subject: [PATCH] Create bogosort.py --- allalgorithms/sorting/bogosort.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 allalgorithms/sorting/bogosort.py diff --git a/allalgorithms/sorting/bogosort.py b/allalgorithms/sorting/bogosort.py new file mode 100644 index 0000000..bb1d209 --- /dev/null +++ b/allalgorithms/sorting/bogosort.py @@ -0,0 +1,4 @@ +def bogo(x): + while not inorder(x): + shuffle(x) + return x