repl.it
@anonymous/

RegularAgileBraces

Python

No description

fork
loading
Files
  • main.py
  • arquivo.csv
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import pandas as pd
import numpy as np
import random

c1 = (random.choice([9, 9]))
c2 = (random.choice([1, 1]))
c3 = (random.choice([9, 9, 9]))
lista = []

print ('---criado por xxx---')

rc = int(input('Quantas combinacoes?: '))

def gerar_randomico():
    return random.choice([2, 3, 4, 5, 6, 7, 8, 9])

def gerar_randomicus():
    return random.choice([6, 7, 8, 9])

df = pd.DataFrame()

df = pd.concat([pd.DataFrame([('{}{}{}{}{}{}{}{}{}{}{}'.format(c1, c2, c3, gerar_randomicus(), gerar_randomico(), gerar_randomico(), gerar_randomico(), gerar_randomico(), gerar_randomico(), gerar_randomico(), gerar_randomico()))], columns=['B']) for i in range(rc)], ignore_index=True)

df['C'] = df['B']

df.insert(0, 'A', np.nan)

df.to_csv('arquivo.csv', sep=",", header=None, index=None)

print(df)
Fetching token
?