static Pt randomPointNearCenter(int w, int h) { ret Pt(random(iround(w*0.4), iround(w*0.6)), random(iround(h*0.4), iround(h*0.6))); }
Began life as a copy of #1014993
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: | #1015012 |
| Snippet name: | randomPointNearCenter |
| Eternal ID of this version: | #1015012/1 |
| Text MD5: | 305a2fde57fb00ba9d9406978489a61e |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-06 23:29:46 |
| Source code size: | 144 bytes / 4 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 638 / 697 |
| Referenced in: | [show references] |