Possible to generate Codes with an Pattern?

  • Автор темы Автор темы Ehnoah
  • Дата начала Дата начала

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
 
Hi, this does not help? You can pick any custom characters you want.
61535
 
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.
 
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.
 
Nah I just copied a code snipped xD
 
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
 

Вложения

  • Demo.zp
    Demo.zp
    13,2 KB · Просмотры: 151
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.
 
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
 

Вложения

  • Demo2.zp
    Demo2.zp
    15,7 KB · Просмотры: 152
Последнее редактирование:
  • Спасибо
Реакции: Ehnoah
That does the Job and I got the Logic, thanks <3
 

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