-
Notifications
You must be signed in to change notification settings - Fork 0
/
gen.cs
236 lines (196 loc) · 8.09 KB
/
gen.cs
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
using System.IO;
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ConsoleApp17
{
class Program
{
static void Main(string[] args)
{
Console.Title = ("Générateur 1.0");
Init();
}
private static void Init()
{
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine (" _____________ ____________ ___ ______________ _______ ");
Console.WriteLine (" / ____/ ____/ | / / ____/ __ / |/_ __/ ____/ / / / __ / ");
Console.WriteLine (" / / __/ __/ / |/ / __/ / /_/ / /| | / / / __/ / / / / /_/ / ");
Console.WriteLine (" / /_/ / /___/ /| / /___/ _, _/ ___ |/ / / /___/ /_/ / _, _/ ");
Console.WriteLine (" /____ /_____/_/ |_/_____/_/ |_/_/ |_/_/ /_____/ ____/_/ |_| V1.5 ");
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine(" Dev by BobMoquette1337 ");
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("\nChoisissez le format de votre numlist :\n");
Console.WriteLine("[1] FR-06");
Console.WriteLine("[2] FR-07");
Console.WriteLine("[3] BE-32");
Console.WriteLine("[4] GE-49\n");
string choix = Console.ReadLine();
//int choix = Convert.ToInt32(Console.ReadLine());
if (choix == "1")
{
Console.Clear();
FR_06();
}
else if (choix == "2")
{
Console.Clear();
FR_07();
}
else if (choix == "3")
{
Console.Clear();
BE_32();
}
else if (choix == "4")
{
Console.Clear();
GE_49();
}
else
{
Console.Clear();
Console.WriteLine("Erreur : ce choix n'est pas autorisé");
}
}
private static void FR_06()
{
string format_fr = "[FR-06]";
Console.WriteLine(format_fr);
Console.WriteLine("Combien de numéros voulez-vous générer :");
string z = Console.ReadLine();
int zsol = Int32.Parse(z);
var prefixfr = "336";
Console.Clear();
Console.ForegroundColor = ConsoleColor.Green;
Random ramdom0 = new Random();
Random ramdom1 = new Random();
Random ramdom2 = new Random();
Random ramdom3 = new Random();
Random ramdom4 = new Random();
Random ramdom5 = new Random();
Random ramdom6 = new Random();
Random ramdom7 = new Random();
Random ramdom8 = new Random();
Random ramdom9 = new Random();
for (int i = 0; i < zsol;)
{
int number0 = ramdom9.Next(0, 9);
int number1 = ramdom8.Next(0, 9);
int number2 = ramdom7.Next(0, 9);
int number3 = ramdom6.Next(0, 9);
int number4 = ramdom5.Next(0, 9);
int number5 = ramdom4.Next(0, 9);
int number6 = ramdom3.Next(0, 9);
int number7 = ramdom2.Next(0, 9);
Console.WriteLine("[+] " + prefixfr + $"{number0}{number1}{number2}{number3}{number4}{number5}{number6}{number7}\n");
i++;
}
Console.ForegroundColor = ConsoleColor.White;
}
private static void FR_07()
{
string format_fr = "[FR-07]";
Console.WriteLine(format_fr);
Console.WriteLine("Combien de numéros voulez-vous générer :");
string z = Console.ReadLine();
int zsol = Int32.Parse(z);
var prefixfr = "337";
Console.Clear();
Random ramdom0 = new Random();
Random ramdom1 = new Random();
Random ramdom2 = new Random();
Random ramdom3 = new Random();
Random ramdom4 = new Random();
Random ramdom5 = new Random();
Random ramdom6 = new Random();
Random ramdom7 = new Random();
Random ramdom8 = new Random();
Random ramdom9 = new Random();
for (int i = 0; i < zsol;)
{
int number0 = ramdom9.Next(0, 9);
int number1 = ramdom8.Next(0, 9);
int number2 = ramdom7.Next(0, 9);
int number3 = ramdom6.Next(0, 9);
int number4 = ramdom5.Next(0, 9);
int number5 = ramdom4.Next(0, 9);
int number6 = ramdom3.Next(0, 9);
int number7 = ramdom2.Next(0, 9);
Console.WriteLine("[+]" + prefixfr + $"{number0}{number1}{number2}{number3}{number4}{number5}{number6}{number7}\n");
i++;
}
}
private static void BE_32()
{
string format_fr = "BE-32";
Console.WriteLine(format_fr);
Console.WriteLine("Combien de numéros voulez-vous générer :");
string z = Console.ReadLine();
int zsol = Int32.Parse(z);
var prefixfr = "32";
Console.Clear();
Random ramdom0 = new Random();
Random ramdom1 = new Random();
Random ramdom2 = new Random();
Random ramdom3 = new Random();
Random ramdom4 = new Random();
Random ramdom5 = new Random();
Random ramdom6 = new Random();
Random ramdom7 = new Random();
Random ramdom8 = new Random();
Random ramdom9 = new Random();
for (int i = 0; i < zsol;)
{
int number0 = ramdom9.Next(0, 9);
int number1 = ramdom8.Next(0, 9);
int number2 = ramdom7.Next(0, 9);
int number3 = ramdom6.Next(0, 9);
int number4 = ramdom5.Next(0, 9);
int number5 = ramdom4.Next(0, 9);
int number6 = ramdom3.Next(0, 9);
int number7 = ramdom2.Next(0, 9);
Console.WriteLine("[+]" + prefixfr + $"{number0}{number1}{number2}{number3}{number4}{number5}{number6}{number7}\n");
i++;
}
}
private static void GE_49()
{
string format_fr = "GE-49";
Console.WriteLine(format_fr);
Console.WriteLine("Combien de numéros voulez-vous générer :");
string z = Console.ReadLine();
int zsol = Int32.Parse(z);
var prefixfr = "49";
Console.Clear();
Random ramdom0 = new Random();
Random ramdom1 = new Random();
Random ramdom2 = new Random();
Random ramdom3 = new Random();
Random ramdom4 = new Random();
Random ramdom5 = new Random();
Random ramdom6 = new Random();
Random ramdom7 = new Random();
Random ramdom8 = new Random();
Random ramdom9 = new Random();
string newline = Environment.Newline;
for (int i = 0; i < zsol;)
{
int number0 = ramdom9.Next(0, 9);
int number1 = ramdom8.Next(0, 9);
int number2 = ramdom7.Next(0, 9);
int number3 = ramdom6.Next(0, 9);
int number4 = ramdom5.Next(0, 9);
int number5 = ramdom4.Next(0, 9);
int number6 = ramdom3.Next(0, 9);
int number7 = ramdom2.Next(0, 9);
Console.WriteLine("[+]" + prefixfr + $"{number0}{number1}{number2}{number3}{number4}{number5}{number6}{number7}\n");
i++;
}
}
}
}