SORU
15 NİSAN 2011, Cuma


Nasıl 20 rasgele bayt dizisi oluşturmak için?

Nasıl Java 20 rasgele bayt dizisi oluşturabilirim?

CEVAP
15 NİSAN 2011, Cuma


Random.nextBytes yöntemi deneyin:

byte[] b = new byte[20];
new Random().nextBytes(b);

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • BeginnersTech

    BeginnersTec

    8 NİSAN 2011
  • nemoking of kinges

    nemoking of

    4 EYLÜL 2009
  • The Exploiteers

    The Exploite

    4 Ocak 2011