Hack Forums
[.NET] How to make a Random Pool Generator? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] How to make a Random Pool Generator? (/showthread.php?tid=5868272)



How to make a Random Pool Generator? - VENI - Jul 31, 2018

As the title says does anyone know how to or does anyone have the source of one. Need this for upcoming tool


thanks


RE: How to make a Random Pool Generator? - GHO57 - Jul 31, 2018

Sorry for asking, but what is Random Pool?


RE: How to make a Random Pool Generator? - VENI - Jul 31, 2018

(Jul 31, 2018 01:36 AM)GHO57 Wrote:  Sorry for asking, but what is Random Pool?

it generates a random string once you hover your mouse on it here is an example of Static Crypters one: Image


RE: How to make a Random Pool Generator? - hash - Jul 31, 2018

Since you essentially just a want a random string use this:
You can also program it without LINQ if you want
Code
private static Random random = new Random();
public static string RandomString(int length)
{
   const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
   return new string(Enumerable.Repeat(chars, length)
     .Select(s => s[random.Next(s.Length)]).ToArray());
}

Fill in the amount of random characters you want and you're done. Whenever someone hovers you can just call this method =)
If you want it in a grid like the picture you posted, just parse it. Not sure if this is what you wanted. If you have any questions feel free to ask.


RE: How to make a Random Pool Generator? - VENI - Jul 31, 2018

(Jul 31, 2018 03:16 AM)Alluminition Wrote:  Since you essentially just a want a random string use this:
You can also program it without LINQ if you want
Code
private static Random random = new Random();
public static string RandomString(int length)
{
   const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
   return new string(Enumerable.Repeat(chars, length)
     .Select(s => s[random.Next(s.Length)]).ToArray());
}

Fill in the amount of random characters you want and you're done. Whenever someone hovers you can just call this method =)
If you want it in a grid like the picture you posted, just parse it. Not sure if this is what you wanted. If you have any questions feel free to ask.

can you please make me a example project of one with the grid thanks


RE: How to make a Random Pool Generator? - hash - Jul 31, 2018

It's better if you make it yourself for learning purpose as well. If you have any problems regarding the grid I can help! Think about how you are going to design your UML diagram.

Questions like:
[*] In what format do I want the grid?
[*] Where do I put the grid logic
[*] How am I going to make this interactive

Maybe sketch an UML first with entities, functions, vars and relationships. It will make you understand the case.


RE: How to make a Random Pool Generator? - Vyxn - Jul 31, 2018

It's work with GDI but if it isn't that necessary then don't. Just make a button saying "generate random" and it all good.


RE: How to make a Random Pool Generator? - Earn - Aug 5, 2018

(Jul 31, 2018 03:22 AM)ribthegreat992 Wrote:  can you please make me a example project of one with the grid thanks

No one is going to do the whole thing for you for free.