Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1033662 // arrayOfRandomInts

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Compilation Failed (4675L/26K).

static int[] arrayOfRandomInts(int n, Random random default defaultRandomizer()) {
  int[] data = new[n];
  for i to n: data[i] = randomInt(random);
  ret data;
}

Author comment

Began life as a copy of #1029032

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033662
Snippet name: arrayOfRandomInts
Eternal ID of this version: #1033662/2
Text MD5: 15ced95f6873633033570fabeefeb24d
Transpilation MD5: dff662f691c56b448ac09ed7faa2d0b1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-06 22:55:38
Source code size: 166 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 91 / 130
Version history: 1 change(s)
Referenced in: [show references]