java - how to get those array values randomly? -


, "E", "E", "F", "E", "H", "I", "J", "K", "L", "M", "N", " O "," P "," Q "," R "," S "," T "," U "," V "," W "," X "," Y "," Z "," A " "I", "I", "J", "K", "L", "M", "B", "C", "D", "E", "F", "G", "H", " N "," O "," P "," Q "," R "," S "," T "," U "," V "," W "," X "," Y "," 0 " , "2", "3", "4", "5", "6", "7", "8", "9", "` "," ~ ","! "," "", "_", "", "", "", "", "", "$", "%", "^", "& Amp;", "*", "(", " , "", "", "", ":", "", "" "," "," <",", "," & Gt; ",". "," / ","? ",};

How to get value in this string array randomly?

For example:

  AG.4fF h9_wO4  

So far, I have the following code:

 for  (string string: arry) {string random value = saw (new random). NextInt ( Arry.length)]; System.out.println ("Inside array values ​​- -> gt; & gt;" + random value); }  

For this code, it returns all array values, then to create a multi-combination.

As I mentioned earlier?

To get a string of characters

  constant last String Characters = "ABCDEFGILMNOPCRSTUVXZ" + "Abcdefghijklmnopqrstuvwxyz" + "0123456789` ~ @ @ $$ ^ ^ & amp; () -_" + "= +:: '| \"  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -