X-Received: by 2002:ad4:48d0:0:b0:63c:fa12:e4b1 with SMTP id v16-20020ad448d0000000b0063cfa12e4b1mr6011qvx.2.1690128275369; Sun, 23 Jul 2023 09:04:35 -0700 (PDT) X-Received: by 2002:a05:6808:1590:b0:3a3:8cf6:5edf with SMTP id t16-20020a056808159000b003a38cf65edfmr13143384oiw.9.1690128275200; Sun, 23 Jul 2023 09:04:35 -0700 (PDT) Path: csiph.com!tncsrv06.tnetconsulting.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.programming Date: Sun, 23 Jul 2023 09:04:34 -0700 (PDT) In-Reply-To: <87fs5en385.fsf@bsb.me.uk> Injection-Info: google-groups.googlegroups.com; posting-host=91.129.96.196; posting-account=sCYzwQoAAABXcok-EJve5LuJXPHy2ToN NNTP-Posting-Host: 91.129.96.196 References: <87tttzr9h0.fsf@bsb.me.uk> <874jlyqsi1.fsf@bsb.me.uk> <2c181aeb-49e4-45b8-8be1-fc1189878e3en@googlegroups.com> <0c4b6149-511e-432c-a5b7-c7c88a865006n@googlegroups.com> <70c10615-2473-4f66-ab1c-c632aa33fa5cn@googlegroups.com> <87fs5en385.fsf@bsb.me.uk> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2acaaaae-4e27-4318-a3f2-3b8c4e43db9en@googlegroups.com> Subject: Re: random points near central point From: Y Injection-Date: Sun, 23 Jul 2023 16:04:35 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 4041 Xref: csiph.com comp.programming:16565 You classify Yourself as a . ? On Sunday, July 23, 2023 at 4:53:51=E2=80=AFPM UTC+3, Ben Bacarisse wrote: > fir writes:=20 >=20 > > sobota, 22 lipca 2023 o 21:24:23 UTC+2 Ed Prochak napisa=C5=82(a):=20 > >> On Friday, July 21, 2023 at 8:55:36=E2=80=AFAM UTC-4, fir wrote:=20 > >> []=20 > >> > no i dont want to put an asteroid in 'cylinder' from radius r1 to r2= =20 > >> > i want to set most of them in circle r1 and rest in cylinder from r1= to r2=20 > >> > such way it would look naturally such as a n group of astronomical t= hings=20 > >> > or pieces of things when you shatter them on the floor - most densit= y in=20 > >> > the centre till r1 less near r2 and none outside r2=20 > >> >=20 > >> I suggest you define your expected distribution first.=20 > >> You might begin by defining the distribution you really want.=20 > >> case 1: Is it constant density from 0 to r1 and then linear decline of= density from r` to r2?=20 > >> case 2: is is a natural distribution of "astronomical things"?=20 > >> (clearly not like case 1, consider the solar system, including the ast= eroid belt)=20 > >> case 3: is it a random scattering as "when you shatter them on the flo= or"=20 > >> (clearly not like case 1 or 2. This is a gaussian distribution.)=20 > >> case 4: SOMETHING ELSE???=20 > >>=20 > >> State your desire clearly and we may be able to help you. Without a cl= ear goal,=20 > >> you'll be debugging potential solutions forever.=20 > >>=20 > >> Ed=20 > >=20 > > i dont care to much exactly i need to set a pack of 200 asteroids=20 > > around some point to look good (but this should be not to much density= =20 > > in centre, ilke 10 asteroid cover the same piece of screen, thety may= =20 > > cover partially, but not like stack in 10 in one place)...also i want= =20 > > to use this function to set other things like in random group (but not= =20 > > like brush in pain, its more like more density in centre (where centre= =20 > > is not point but circle) and gradually less from r1 to r2=20 >=20 > A bit like these:=20 >=20 > http://bsb.me.uk/tmp/r1.png=20 > http://bsb.me.uk/tmp/r2.png=20 >=20 > > i think its not hard to understand what i want=20 >=20 > It's hard to understand what you write. I am sure what you want is=20 > quite simple. This is not about C so I'm going to crosspost to=20 > comp.programming and set followups. I won't post about it here again.=20 >=20 > --=20 > Ben.