Skip to content

Commit

Permalink
fix: shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
bymoye committed May 7, 2023
1 parent 8f63a72 commit fec425e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion nazo_rand/nazo_rand.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cdef inline int64_t cy_uniform_int_variate(int64_t a, int64_t b) nogil:
cpdef int random_integer_noargs():
return uniform_int_variate_noargs()

cpdef void shuffle(list[object] array):
cpdef void shuffle(list array):
cdef int i, j
cdef object temp
cdef int length = len(array)
Expand All @@ -31,6 +31,7 @@ cpdef void shuffle(list[object] array):
array[i] = array[j]
array[j] = temp


def randbelow(a:int) -> int:
return random_below(a)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"

[metadata]
name = "nazo_rand"
version = "0.0.8"
version = "0.0.9"
author = "bymoye"
author_email = "[email protected]"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def readme():
),
author="bymoye",
author_email="[email protected]",
version="0.0.8",
version="0.0.9",
description="A fast random number generator for python",
long_description=readme(),
long_description_content_type="text/markdown",
Expand Down

0 comments on commit fec425e

Please sign in to comment.