artemis.externals.pyudorandom¶
Submodules¶
Package Contents¶
-
artemis.externals.pyudorandom.shuffle(ls)¶ Takes a list ls and returns a new list with the elements of ls in a new order.
-
artemis.externals.pyudorandom.items(ls)¶ Yields the elements of ls in a pseudorandom fashion.
-
artemis.externals.pyudorandom.bin_gcd(a, b)¶ Return the greatest common divisor of a and b using the binary gcd algorithm.
-
artemis.externals.pyudorandom.indices(n)¶ Generates the cyclic group 0 through n-1 using a number which is relative prime to n.