Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!

cracked.io | Best Forum Around | Free Premium Accounts




 1327

HELP! how to make giftcard generator notepad++

by timmy2shoe57 - 03 December, 2018 - 10:01 PM
This post is by a banned member (timmy2shoe57) - Unhide
315
Posts
12
Threads
5 Years of service
#1
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
This post is by a banned member (crystals) - Unhide
crystals  
Registered
162
Posts
19
Threads
5 Years of service
#2
here's the code in C# (dunno how to do it in notepad++)

Code:
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
This post is by a banned member (timmy2shoe57) - Unhide
315
Posts
12
Threads
5 Years of service
#3
man thank you so much
This post is by a banned member (Pruned57908) - Unhide
8
Posts
0
Threads
5 Years of service
#4
(This post was last modified: 11 December, 2018 - 08:29 PM by Pruned57908.)
(04 December, 2018 - 01:27 AM)crystals Wrote: Show More
here's the code in C# (dunno how to do it in notepad++)

Code:
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.
Code:
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.
This post is by a banned member (inShane) - Unhide
inShane  
Registered
7
Posts
1
Threads
5 Years of service
#5
What language did you want it in?
This can be easily accomplished in a variety of languages. It's essentially just generating random numbers.
This post is by a banned member (crystals) - Unhide
crystals  
Registered
162
Posts
19
Threads
5 Years of service
#6
(11 December, 2018 - 08:04 PM)Lain Wrote: Show More
(04 December, 2018 - 01:27 AM)crystals Wrote: Show More
here's the code in C# (dunno how to do it in notepad++)

Code:
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.
Code:
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

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)