Possible to generate Codes with an Pattern?

Ehnoah

Новичок
Регистрация
16.03.2015
Сообщения
29
Благодарностей
2
Баллы
3
Hey,

I currently using the random Function to generate Codes, but the COdes using Patterns, so I am curious, if that might work?

ABCDEF-123-ABCDEF-123
(First ABCDEF must contain an U and A)
(Secound ABCDEF must contain an O and E)

Is this somehow possible with the Random Function? Or is own C# COde required?

Thanks <3
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113

Ehnoah

Новичок
Регистрация
16.03.2015
Сообщения
29
Благодарностей
2
Баллы
3
That will only use this Characters no?

For example the Charset is:

AFGJMPU But the Code always require an F

So FXXXX or XXFXXX or XFXXXX (so a F is required) Not sure if this is suposed to work. Is this Screen you showed actually ZennoPoster 7? Because I used C# for the Generation now, I never saw this UI you posted.
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
That will only use this Characters no?

For example the Charset is:

AFGJMPU But the Code always require an F

So FXXXX or XXFXXX or XFXXXX (so a F is required) Not sure if this is suposed to work. Is this Screen you showed actually ZennoPoster 7? Because I used C# for the Generation now, I never saw this UI you posted.
Yes, this is Random action properties. Using c# is fine also if You can write it.
 

Ehnoah

Новичок
Регистрация
16.03.2015
Сообщения
29
Благодарностей
2
Баллы
3
Nah I just copied a code snipped xD
 

kingbin

Пользователь
Регистрация
22.03.2019
Сообщения
74
Благодарностей
13
Баллы
8
This is very simple with C#. Althrough you can made it with Zenno Function but it need you more step. This is my example with the first which must have U and A
 

Вложения

  • 13,2 КБ Просмотры: 83

Ehnoah

Новичок
Регистрация
16.03.2015
Сообщения
29
Благодарностей
2
Баллы
3
Hey thanks for the Demo, I see your attempt, sadly the Code gets pretty long, it should be limited to 6 chars.

So

XXXUXA-123-OXXEXX-123

So first Part is 6 Chars and 2. part is 6 chars.
 

kingbin

Пользователь
Регистрация
22.03.2019
Сообщения
74
Благодарностей
13
Баллы
8
Hey thanks for the Demo, I see your attempt, sadly the Code gets pretty long, it should be limited to 6 chars.

So

XXXUXA-123-OXXEXX-123

So first Part is 6 Chars and 2. part is 6 chars.
Ah see your question and only that need have 2 character. Here is demo2, which make full text 4 part, limit 6 char and must have some char.
P/s: Char random can be duplicate, example in 6 char have 2 "A" or something. If you need it not duplicate, you need some other logic to check duplicate or another mindset
 

Вложения

  • 15,7 КБ Просмотры: 86
Последнее редактирование:
  • Спасибо
Реакции: Ehnoah

Ehnoah

Новичок
Регистрация
16.03.2015
Сообщения
29
Благодарностей
2
Баллы
3
That does the Job and I got the Logic, thanks <3
 

Кто просматривает тему: (Всего: 2, Пользователи: 0, Гости: 2)