+ 6

Challenge: Uniform Random Sampling

Circles are placed randomly in the canvas, but only if they are not overlapping with any previous circle. This is referred to as "Uniform Random Sampling". Create a program which adds new circle on each click to any random place and no circles should overlap each other. Note: You can't use any external library Shubhkaamanaen ( Best of Luck ) :)

6th Sep 2017, 7:25 PM
Kartikey Sahu
Kartikey Sahu - avatar
5 Réponses
+ 4
@Kartikey Sahu: Thanks for upvote, but doesn't it deserve the best answer mark? It's the only submission you've got in 14 hours ^^
7th Sep 2017, 9:55 AM
visph
visph - avatar
+ 4
It's a difficult one.. Can you give us something easy to do.. @Visph I don't think anyone will be able to do as close as you in this challenge. You are too good man..deserve to be best answer!
8th Sep 2017, 11:03 AM
Apoorva Shenoy Nayak
Apoorva Shenoy Nayak - avatar
+ 2
@Apoorva I will try
8th Sep 2017, 11:04 AM
Kartikey Sahu
Kartikey Sahu - avatar
+ 2
That wasn't as hard as it could appear ^^ If you are interested about how to, I can detail the process: feel free to ask me in code comments (or even here, but I've already experiemented that people doesn't ever necessarly appreciate when I'm too much verbose technically) if code itself isn't enough explicit for you ;)
8th Sep 2017, 12:28 PM
visph
visph - avatar