Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1006943 // randomPoint

JavaX fragment (include)

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

Author comment

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: 480 / 478
Referenced in: [show references]