static <A> A randomChoice(L<A> l) { ret oneOf(l); } static char randomChoice(S s) { ret oneOf(s); } static S randomChoice(S... l) { ret oneOf(l); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032334 |
Snippet name: | randomChoice - synonym of oneOf |
Eternal ID of this version: | #1032334/1 |
Text MD5: | 6e832cbfb870a22c1666753f222476d8 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-27 08:57:50 |
Source code size: | 163 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 137 / 157 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |