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

4
LINES

< > BotCompany Repo | #1031618 // randomHexLetter

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

Libraryless. Click here for Pure Java version (2903L/17K).

static char randomHexLetter() {
  int n = random(16);
  ret n < 10 ? charPlus('0', n) : charPlus('a', n-10);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031618
Snippet name: randomHexLetter
Eternal ID of this version: #1031618/2
Text MD5: a227fe10f410cd6f4e0dee7f2a215bd5
Transpilation MD5: 82292540bcb8788bfa52e9fc1a55d838
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-22 11:35:33
Source code size: 113 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 62 / 99
Version history: 1 change(s)
Referenced in: [show references]