Skip to content

Instantly share code, notes, and snippets.

@DonatasD
Created November 13, 2015 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DonatasD/0b06ac3b29cb00f961e9 to your computer and use it in GitHub Desktop.
Save DonatasD/0b06ac3b29cb00f961e9 to your computer and use it in GitHub Desktop.
import sqlite3
import random
conn = sqlite3.connect("originial.db")
c = conn.cursor()
conn.execute("CREATE TABLE Pressure(value REAL);")
for i in range(0,100000):
print round(random.uniform(10.0, 25.0),2)
conn.execute("INSERT INTO Pressure VALUES(?);", round(random.uniform(10.0, 25.0),2))
c.close()
conn.close()
@MattForshaw
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment