vb.net - Find all permutations from 1-9 and A-F -
I'm trying to find all the possible permutations of the following conditions:
Number Category 1 99
letter limit AF
32 digit long string
What would you recommend to make my life easier? Try to find out about the permutations in Vb, but not found them yet, and I do not know why, but it does not work so hard: s
Sample:
9A E5 4 B CA BD 93 dE 2E 01 00 00 01 00 00 00 00
6E C7 9A CF CB A 7 67 D9 17 EE 6B 70 F0 5E e 4 32
64 86 00 EA 91 71 65 67 1F CE EF EB B1 CC 07 84
63 C0 8A e F7 9F 5D F3 06 01 00 07 00 00 00 00
51 16 15 7 56 9 F 0A FF 55 1C 20 91 58 CD AA CF
48 61 56 FF 41 6E49F8 45 7049EF 54 75 52 1B
45 BA B8B742 52E3 77 03 00 00 03 00 00 00 00
40D 0 F4 04 BF AF B B 99 02 00 00 00 00 00 00 00
40 30 90 00 3F 7C 83 3E 68 98 D5 D5 6D D9 A3 E9
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FE A1 CE 6D A6 82A 9 D 00 00 00 00 00 00 00 00
Thanks for the help! In
Edit:
This is my code
Integer Public Class Form1 Dim C Dim P1, P2, P3, P4, P5 String Dim Combo String as a Random, Random Form of Random Personal Sub Form 1_load (from System Nder as P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, Object, E.AventErgues) controls MyBase. Load C = 1 while C & lt; = 99 c = c + 1 if c & lt; 10 then A = "0" & amp; C other: A = C and if P1 = A P2 = 2 combo = P1 + "+ 2 + +" + 3 + "+ + +" + + + + + + + + + + + + + + "+" + "+ P8 +" "+ P9 +" "+ Pl0 +" "+ p11 +" "+ Pl2 +" "+ P13 +" "+ Pl4 +" "+ Pl5 +" "+ P16 + "+ + vbNewLine RichTextBox1.AppendText (Combo + VB New Line) End And Sub
And Class
Looking at your example, you 0-9 (not 1-9) and AF
Alex Instructions to solve it smoothly:
You will ignore "numerals and letters" since a hexadecimal notation of the bytes (AF == 175) 16 bytes, Each of which can organize 0 255 so that you have 340.282.366.920.938.463.463.374.607.431.768.211.455 possible combinations.
Although it is theoretically possible to achieve all these permutations, your computer requires about this 34,028,236,692,093,846,346,337,460,743 GB. I do not think there is too much memory Total
If this was a relatively small number, then we can do it with the following method:
String Counter = 0 counter = 0 to 2147483647 # Output = String (16 - Lane (Hex (Counter), "0") as long term output as <0> sub-purgatory () slow counter. ; Hex (counter) MSBbox output is the next counter and sub
but the longest price in VBA 7 is 8 bytes, with a maximum price of 2,437,483,648 (4 bytes / 2) or VB net. This means that 12 bytes and one bit will always be 0. This can be solved with some nested for the loop.
I think the solution to your problem is the best answer JNVil
16 combinations 00-FF ... this is crazy ...
Important note : If you have posted the code, it is important to familiarize yourself with CRT + Pause / Break first. The fastest way outside the archipelago;)
Comments
Post a Comment