Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

How to make a Random Pool Generator?

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


thanks
Sorry for asking, but what is Random Pool?
(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
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.
[Image: 89758]
(Jul 31, 2018 03:16 AM)hash 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
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.
[Image: 89758]
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.
[Image: signaturetwo.png]
(Jul 31, 2018 03:22 AM)VENI 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.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by GREGORYNov 26, 2019 07:02 AM 2 238 Nov 26, 2019 07:02 AM
Last Post: Kallu609
[Java] by WubixApr 3, 2018 07:20 AM 3 244 Apr 3, 2018 07:20 AM
Last Post: matt
[C#] by glitchgxdAug 15, 2017 10:02 AM 18 854 Aug 15, 2017 10:02 AM
Last Post: Milan Hermanus