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

  • ipsy

    ipsy

    1 EKİM 2012
  • TheDroidDemos

    TheDroidDemo

    15 ŞUBAT 2011
  • Troy Hunt

    Troy Hunt

    29 EYLÜL 2011