Demo entry 6638610



Submitted by anonymous on Sep 08, 2017 at 05:39
Language: Python. Code size: 209 Bytes.

def random_generator(n):
      l =  list(np.random.choice(n, n, replace=True))
      with open("/Users/Yuchen/Documents/random.txt", "w") as f:
          for s in l:
                f.write(str(s) +"\n")

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).