I want to generate 500 random binary strings of length 32 (i.e., from 00000...0
to 1111...1
where each string is length 32). I'm wondering how I could do this efficiently or Pythonically.
Right now, I randomly choose between 0
and 1
32 times and then append the results into a string. This seems pretty inefficient and not pythonic. Is there some library functions i could use for this?