79097069

Date: 2024-10-17 07:54:19
Score: 1
Natty:
Report link

Another way

var streamSize = 1000;
var maxValue = 50;
new Random(System.currentTimeMillis())
    .ints(streamSize).map(e -> Math.abs(e) % maxValue).toArray();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tyagi Akhilesh