Libraryless. Click here for Pure Java version (2903L/17K).
1 | static char randomHexLetter() { |
2 | int n = random(16); |
3 | ret n < 10 ? charPlus('0', n) : charPlus('a', n-10); |
4 | } |
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: | 131 / 195 |
Version history: | 1 change(s) |
Referenced in: | [show references] |