1 | static Pt randomPoint(int w, int h) { |
2 | ret new Pt(random(w), random(h)); |
3 | } |
4 | |
5 | ifclass RGBImage |
6 | static Pt randomPoint(RGBImage img) { |
7 | ret randomPoint(img.w(), img.h()); |
8 | } |
9 | 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: | 548 / 547 |
Referenced in: | [show references] |