Libraryless. Click here for Pure Java version (9222L/51K).
static double exponentialRandom(double min, double max) { return exp(random(log(min), log(max))); }
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1036161 |
Snippet name: | exponentialRandom - random number generator with exponential distribution |
Eternal ID of this version: | #1036161/1 |
Text MD5: | 354c58f8fa5fd9166c677c2fd313a1b1 |
Transpilation MD5: | 0a81a40b042a8000979742ee92ffd9a9 |
Author: | stefan |
Category: | javax / math |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-10-03 19:17:23 |
Source code size: | 103 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 123 / 175 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |