These generators accept None, int, or a sequence. The returned generator is then called like random's version, e.g. _randint()(1,3) and mostly the result is the same unless a sequence is sent. In that case the elements of the sequence that satisfy the arguments given will be returned, e.g. ri = _randint([1,5,2,3]); [ri(1,2) for i in range(2)] would return [1, 2] and ignore the 5. Another call to ri(1,2) would generate an error since there are no more valid elements.
--- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/issues/1375 -- You received this message because you are subscribed to the Google Groups "sympy-patches" group. To post to this group, send email to sympy-patches@googlegroups.com. To unsubscribe from this group, send email to sympy-patches+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy-patches?hl=en.