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

3
LINES

< > BotCompany Repo | #1024046 // random10 - take 10 random elements from list

JavaX fragment (include)

static <A> L<A> random10(L<A> l) {
  ret takeRandom(10, l);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1024046
Snippet name: random10 - take 10 random elements from list
Eternal ID of this version: #1024046/1
Text MD5: 7e99beb0bc0f794ff32ab49950944f1d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-18 14:54:53
Source code size: 63 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 158 / 185
Referenced in: [show references]