Skip to content

Instantly share code, notes, and snippets.

@daverivera
Last active August 29, 2015 14:03
Show Gist options
  • Save daverivera/f32616a30a0bb5f465e2 to your computer and use it in GitHub Desktop.
Save daverivera/f32616a30a0bb5f465e2 to your computer and use it in GitHub Desktop.
Generate random float array and save the result into a csv file
import numpy as np
rarray = np.random.sample(512) * 5
np.savetxt("file.csv", a, delimiter=",", fmt="%2.9f")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment