(itr=None)
| 469 | number_funcs = [randint, randfloat, randcomplex, randfraction] |
| 470 | |
| 471 | def un_random_mixed_op(itr=None): |
| 472 | if itr is None: |
| 473 | itr = 1000 |
| 474 | for _ in range(itr): |
| 475 | for func in number_funcs: |
| 476 | yield func() |
| 477 | # Test garbage input |
| 478 | for x in (['x'], ('y',), {'z'}, {1:'z'}): |
| 479 | yield x |
| 480 | |
| 481 | def bin_random_mixed_op(prec, emax, emin, itr=None): |
| 482 | if itr is None: |