Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
やStringのようながたくさんあります。ここで、ランダムな文字列を出力したいと思います。l1l23l3
String
l1
l23
l3
私はすでに乱数のコードを書いています:
int r = 1 + (int)(Math.random() * ((30 - 1) + 1));
lそれで、変数名が文字とランダムな整数である文字列を出力したいと思いますr。
l
r
これは可能ですか?