Sign in to follow this  
timmy2shoe57

HELP! how to make giftcard generator notepad++

Recommended Posts

Hi is there a way to generate numbers at end of string 

example giftcard is 300000000012345 is the a way to change just 12345 to random so output is

 300000000067584

300000000098944

300000000043553

 

Any help i am great full

Share this post


Link to post
Share on other sites

here's the code in C# (dunno how to do it in notepad++)

 

static void Main(string[] args)
       {
           Random random = new Random();
           Console.WriteLine($"{3000000000}{random.Next(10)}{random.Next(10)}{random.Next(10)}{random.Next(10)}{random.Next(10)}");
       }

 

or here is an actual program i made for you just for this objective 

 

https://anonfile.com/W9Q2E7m8b0/ConsoleApp13_exe

Share this post


Link to post
Share on other sites

here's the code in C# (dunno how to do it in notepad++)

 

static void Main(string[] args)
       {
           Random random = new Random();
           Console.WriteLine($"{3000000000}{random.Next(10)}{random.Next(10)}{random.Next(10)}{random.Next(10)}{random.Next(10)}");
       }

 

or here is an actual program i made for you just for this objective 

 

https://anonfile.com/W9Q2E7m8b0/ConsoleApp13_exe

 

Bad solution. This will:

1. Not loop (Maybe you added a loop to the .exe, but not this code.)

2. Return duplicates

3. Run Forever (Given you did loop it using while(true) or whatever.)

 

Here's mine.

for x in range(100000):

   print("300000000" + str(x).zfill(6))

Note: This solution uses python, but I can give an example in a variety of languages if you want.

Share this post


Link to post
Share on other sites

What language did you want it in?

This can be easily accomplished in a variety of languages. It's essentially just generating random numbers.

Share this post


Link to post
Share on other sites

here's the code in C# (dunno how to do it in notepad++)

 

static void Main(string[] args)
       {
           Random random = new Random();
           Console.WriteLine($"{3000000000}{random.Next(10)}{random.Next(10)}{random.Next(10)}{random.Next(10)}{random.Next(10)}");
       }

 

or here is an actual program i made for you just for this objective 

 

https://anonfile.com/W9Q2E7m8b0/ConsoleApp13_exe

 

Bad solution. This will:

1. Not loop (Maybe you added a loop to the .exe, but not this code.)

2. Return duplicates

3. Run Forever (Given you did loop it using while(true) or whatever.)

 

Here's mine.

for x in range(100000):

   print("300000000" + str(x).zfill(6))

Note: This solution uses python, but I can give an example in a variety of languages if you want.

 

1-3. there is a for loop in the .exe3

true this returns duplicates i'll just fix it later

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this