java - how to get those array values randomly? -
How to get value in this string array randomly? For example: So far, I have the following code: For this code, it returns all array values, then to create a multi-combination. As I mentioned earlier?
AG.4fF h9_wO4
for
(string string: arry) {string random value = saw (new random). NextInt ( Arry.length)]; System.out.println ("Inside array values - -> gt; & gt;" + random value); }
To get a string of characters
constant last String Characters = "ABCDEFGILMNOPCRSTUVXZ" + "Abcdefghijklmnopqrstuvwxyz" + "0123456789` ~ @ @ $$ ^ ^ & amp; () -_" + "= +:: '| \"
Comments
Post a Comment