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

  • BiGSH0TROB

    BiGSH0TROB

    7 NİSAN 2011
  • Hudson Music

    Hudson Music

    13 Mart 2007
  • Matthew Pearce

    Matthew Pear

    9 AĞUSTOS 2009