Skip to content

Instantly share code, notes, and snippets.

@hugogrochau
Created May 27, 2013 04:50
Show Gist options
  • Save hugogrochau/5655241 to your computer and use it in GitHub Desktop.
Save hugogrochau/5655241 to your computer and use it in GitHub Desktop.
Gerador de QUALIDADE.TXT
#!/usr/bin/env python
import random
min = 25
max = 44
tamanhos = open("QUALIDADE.TXT", mode="w")
for i in range(min, max + 1):
min_c = random.uniform(20.0, 40.0)
max_c = random.uniform(min_c, 40.0)
tamanhos.write("{0} {1}\n".format(min_c, max_c))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment