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

  • Darren Kitchen

    Darren Kitch

    3 EKİM 2011
  • Kontor.TV

    Kontor.TV

    14 Mart 2006
  • Matthew Smith

    Matthew Smit

    24 Mayıs 2010