static Pt randomPoint(int w, int h) { ret new Pt(random(w), random(h)); } ifclass RGBImage static Pt randomPoint(RGBImage img) { ret randomPoint(img.w(), img.h()); } endif
Began life as a copy of #1005821
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006943 |
Snippet name: | randomPoint |
Eternal ID of this version: | #1006943/1 |
Text MD5: | 98ebf3a0cacc3d1c82e2e63792df616f |
Author: | stefan |
Category: | javax / maths |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-02-19 16:02:45 |
Source code size: | 190 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 547 / 546 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1014952 - _randomPoint - synonym of randomPoint #1033741 - randomPoints - may contain duplicates |