Randomly choose either 1 or -1. Returns ------- sign : int
()
| 41 | |
| 42 | |
| 43 | def randsign(): |
| 44 | """Randomly choose either 1 or -1. |
| 45 | |
| 46 | Returns |
| 47 | ------- |
| 48 | sign : int |
| 49 | """ |
| 50 | return random.choice((-1, 1)) |
| 51 | |
| 52 | |
| 53 | @contextlib.contextmanager |
nothing calls this directly
no outgoing calls
no test coverage detected