Re: Make random values with non-decimal step size

2009-05-13 Thread Stencil
Thanks! I don't know why I didn't think of that!

Re: Make random values with non-decimal step size

2009-05-13 Thread David Rutten
Make them as integers and multiply by 3. -- David Rutten da...@mcneel.com Robert McNeel & Associates On May 13, 2:46 pm, Stencil wrote: > Hi > > How do I create a random number that have a certain step size? > > Let's say I want to create 100 random numbers within th

Make random values with non-decimal step size

2009-05-13 Thread Stencil
Hi How do I create a random number that have a certain step size? Let's say I want to create 100 random numbers within the interval 0-60, but I want these numbers to be steps by 3 - 0,3,6,9 etc. what would the easiest way be to achieve that? I know how to turn the random number into int

Re: How do I get different series of random values?

2009-05-11 Thread Stencil
Hi Thanks! But where did you upload this file? On May 8, 4:18 pm, "//*Elizabeth Tweedale*//" wrote: > I uploaded a file "random_pts.ghx" that basically creates random > numbers from the random number.  The other two ways I spoke of > previously, or to do what

Re: How do I get different series of random values?

2009-05-08 Thread //*Elizabeth Tweedale*//
I uploaded a file "random_pts.ghx" that basically creates random numbers from the random number. The other two ways I spoke of previously, or to do what's in the example with a lot more random numbers, is a bit more complicated. Hope this helps somehow. Elizabeth On May 7, 7

Re: How do I get different series of random values?

2009-05-07 Thread Stencil
airec303: This worked beautiful at first, but when i turn of the program and reload the definition, all the random values get not so random anymore. I don't know why that is, because I didn't fully understand the C#-component and the seed-values, I just noticed that it worked. What di

Re: How do I get different series of random values?

2009-05-07 Thread //*Elizabeth Tweedale*//
You could also perform a function on the list of random numbers for the subsequent Y and Z values which could create a quite beautiful pseudo-random solution for you by plugging the random number into either a function created by you (fx) or to the graph editor.

Re: How do I get different series of random values?

2009-05-06 Thread Stencil
Thanks, I will try this!

Re: How do I get different series of random values?

2009-05-05 Thread aireq303
A common way to seed a random value is to use the system time. You could do this with a C# component buy using the following code. A = System.DateTime.Now.Second; In the code block, assuming A is one of the output names. Plug the A output of the C# block into the seed value of the random

Re: How do I get different series of random values?

2009-05-05 Thread Stencil
Thanks!

Re: How do I get different series of random values?

2009-05-05 Thread visose
The number sequence is unique but stable for each seed value. If you do not like a random distribution, try different seed values. If you right click on a component and select 'help', it usually has a good description on how it works. On May 5, 11:28 pm, Stencil wrote: > I'm

How do I get different series of random values?

2009-05-05 Thread Stencil
I'm trying to create a swarm of randomly placed points within certain boundarys, lets say a box. To do this I use a "Point XYZ"-component and a "Random"-component set up with a couple of sliders. I give the "Point XYZ"-component different random X-coordinate

How do I create different series of random numbers?

2009-05-05 Thread Stencil
I'm trying to create a swarm of randomly placed points withing certain boundarys, lets say a box. I'm doing this by giving a "Point XYZ" x-values with a range of numbers given by a "Random" set up with a couple of sliders. This works fine. Now I want to give the sa

Re: random move of curves frustration

2009-04-21 Thread carter
; > > extruding, also with a randomization. > > > > > curves, evaluate curve to get a single point, line from point through > > > > surface, intersect surface, move curve to intersect point, adjust > > > > position(with random), extrude. > >

Re: random move of curves frustration

2009-04-21 Thread taz
then > > > adjusting in the x-axis with a slight randomization, and then > > > extruding, also with a randomization. > > > > curves, evaluate curve to get a single point, line from point through > > > surface, intersect surface, move curve to intersect point,

Re: random move of curves frustration

2009-04-21 Thread taz
ne from point through > > surface, intersect surface, move curve to intersect point, adjust > > position(with random), extrude. > > > simple. right? > > > wrong. > > > the problem i am having is that when i try to randomly move the > > geometry that is c

Re: random move of curves frustration

2009-04-21 Thread carter
i am moving to a surface, then > adjusting in the x-axis with a slight randomization, and then > extruding, also with a randomization. > > curves, evaluate curve to get a single point, line from point through > surface, intersect surface, move curve to intersect point, adjust >

random move of curves frustration

2009-04-21 Thread carter
, intersect surface, move curve to intersect point, adjust position(with random), extrude. simple. right? wrong. the problem i am having is that when i try to randomly move the geometry that is coming out of the first move, it then multiplies the geometry by order of itself. six rectangles turn

Re: still random

2009-04-05 Thread Taylor
I GOT IT...the David's snapshot picture doesnt show the different randomseed that he set(NOT TO BLAME)! I gave them the same one...T_T... THANK YOU VERY MUCH VISOSE~!THANK YOU ALL!

Re: still random

2009-04-05 Thread visose
You were understood correctly. That is the effect of having the same seed for every random component. Have you tried changing the seed numbers as i said above? With real random numbers the top and bottom diameters will become interior and exterior boundaries. On Apr 5, 7:20 am, Taylor wrote

Re: still random

2009-04-04 Thread Taylor
Maybe i didnt express accurately,i mean , when i did the defination as David's picture, the random point just emerged at the surface of the cylinder, not inside.That's the point. The 65 I set just to control the diameters of the circle,top and bottom.So I really want to know how to

Re: still random

2009-04-04 Thread damien_alomar
> I don't know why, when setting them to similar numbers like '2', '3', > patterns emerged in the point distribution. I knew that random wasn't > completely random, but never thought i could actually distinguish > patterns. If you want a real random l

Re: still random

2009-04-04 Thread visose
0 to2*pi (360 degrees) means the points can be located any ware around the cross-section of the imaginary tube. The one that sets the thickness its where you've got 65 to 65 as the random interval. Set a bigger interval, like 40-80. Also, change the random seed of each random compone

still random

2009-04-04 Thread Taylor
Hi,David I did almost the same as your defination from snapshot picture.but i dont know why i couldnt make the thickness of those points which is like yours,i think maybe is that i dont know what is the mean of 0 to 2*Pi part,here is my snapshot,http://grasshopper3d.googlegroups.com/ web/random.

Re: Random

2009-04-03 Thread Taylor
Hi, I did almost the same as your defination from snapshot picture.but i dont know why i couldnt make the thickness of those points which is like yours,i think maybe is that i dont know what is the mean of 0 to 2*Pi part,here is my snapshot,http://grasshopper3d.googlegroups.com/ web/random.jpg?gsc

Re: Random

2009-04-03 Thread Taylor
Thank you very much! I will try it...maybe several times-_- cause I want put random box in it and i still not very clear about the link principle...By the way, could you tell me what is your gh version? Looks more lovely than my~where can I download it?

Re: Random

2009-04-03 Thread David Rutten
Hi Taylor, I uploaded a screen shot of a definition that creates random points inside a Tube. http://groups.google.com/group/grasshopper3d/web/random_cylinder.png -- David Rutten da...@mcneel.com Robert McNeel & Associates On Apr 3, 2:27 am, Taylor wrote: > Hi all, i am a berginer,

Random

2009-04-02 Thread Taylor
Hi all, i am a berginer, learned a tutorial from this page http://v.youku.com/v_playlist/f2612968o1p0.html. I want to know could i make the random box in a specific space, like a cylinder or something, not just in a range of box, what should I do?

Random

2009-04-02 Thread Taylor
Hi all, i am a berginer, learned a tutorial from this page http://v.youku.com/v_playlist/f2612968o1p0.html. I want to know could i make the random box in a specific space, like a cylinder or something, not just in a range of box, what should I do?

Re: Random Points on surface...help

2009-03-19 Thread David Rutten
Hi Evert, Random how? Some ideas: - Use 2 Random components to generate U and V points, then evaluate the surface at those locations. - Use 3 Random components to generate random points inside the boundingbox of the surface (Use EvaluateBox), then project all those points back onto the surface

Random Points on surface...help

2009-03-19 Thread Evert
Hi all, I'm trying to create N random points on a surface. Has any one got any idea how to achieve this? many thanks in advance Evert

Re: random selection of surfaces

2009-03-18 Thread David Rutten
Hi Mauer, It sounds like you need to split your list of 200 objects randomly into 2 lists. Here;s 2 ways of doing that. 1) Using the [Random] component, generate N random numbers, where N equals the amount of surfaces. Then compare each random number to a fixed value. You can use an Expression

random selection of surfaces

2009-03-17 Thread mauerhakenzwerg
hey, got a problem, as still learning grasshopper: i got about 200 surfaces and want to random select a certain percentage of them (with a slider?) and change their colour- but how can i do that??? i guess for you thats easy but i really have problems with unterstanding how this could work

Re: uneven (not random) division of curve

2009-02-20 Thread urbansurgery
wrote: > Hi all, > Looking to divide a curve into uneven segments, but I'd like more > control than the random divide post suggests. I've been working with > the length between two sine curves (varying number of points, > frequency + amplitude) to get a list of varied (but si

uneven (not random) division of curve

2009-02-20 Thread sdg
Hi all, Looking to divide a curve into uneven segments, but I'd like more control than the random divide post suggests. I've been working with the length between two sine curves (varying number of points, frequency + amplitude) to get a list of varied (but similar) lengths. Now I

Re: Random divide

2009-01-16 Thread damien_alomar
ain unmolested. > > > > If you want a hands on example, create a curve in Rhino (degree=3, 5 > > > control points, don't make it closed), and use the _List command to > > > sneak a peek at the knot-vector. Then use the _Reparameterize command > > > to cha

Re: Random divide

2009-01-16 Thread Chris Wilkins
ek at the knot-vector. Then use the _Reparameterize command > > to change the domain and use _List again to see what's changed in the > > knot-vector. > > > -- > > David Rutten > > da...@mcneel.com > > Robert McNeel & Associates > > > On Jan 16, 5:35

Re: Random divide

2009-01-16 Thread visose
or. Then use the _Reparameterize command > to change the domain and use _List again to see what's changed in the > knot-vector. > > -- > David Rutten > da...@mcneel.com > Robert McNeel & Associates > > On Jan 16, 5:35 am, damien_alomar wrote: > > > Eva

Re: Random divide

2009-01-16 Thread David Rutten
n 16, 5:35 am, damien_alomar wrote: > Evaluating the curve in more of a geometric matter just requires > switching out the Evaluate Curve for the Evaluate Length component > (forgot about that one), and disconnecting the curve domain from the > random componentthe Evaluate length com

Re: Random divide

2009-01-15 Thread damien_alomar
Evaluating the curve in more of a geometric matter just requires switching out the Evaluate Curve for the Evaluate Length component (forgot about that one), and disconnecting the curve domain from the random componentthe Evaluate length component will default to evaluating the curve between 0

Re: Random divide

2009-01-15 Thread damien_alomar
y spaced values in parametric space will not be evenly placed in terms of distance along the curve. So far the suggested solutions are really over complicating this problem. Right now you guys aren't using the random component as its intended and are thinking of crazy ways to get aroun

Re: Random divide

2009-01-15 Thread visose
gt; > On Jan 16, 1:22 am, Chris Wilkins wrote: > > > > Baldino, > > > > I tried building your solution (since I hadn't used the Random > > > component yet), and found a problem when there are more than 3 control > > > points on the curve. I found that the

Re: Random divide

2009-01-15 Thread Chris Wilkins
t; should normalize the domain range from 0 to 1. > > On Jan 16, 1:22 am, Chris Wilkins wrote: > > > > > Baldino, > > > I tried building your solution (since I hadn't used the Random > > component yet), and found a problem when there are more than 3 con

Re: Random divide

2009-01-15 Thread baldino
gt; > On Jan 16, 1:22 am, Chris Wilkins wrote: > > > Baldino, > > > I tried building your solution (since I hadn't used the Random > > component yet), and found a problem when there are more than 3 control > > points on the curve. I found that the domain of t

Re: Random divide

2009-01-15 Thread visose
Right-click on the curve component and check 'reparametrize'. It should normalize the domain range from 0 to 1. On Jan 16, 1:22 am, Chris Wilkins wrote: > Baldino, > > I tried building your solution (since I hadn't used the Random > component yet), and found a problem

Re: Random divide

2009-01-15 Thread Chris Wilkins
Baldino, I tried building your solution (since I hadn't used the Random component yet), and found a problem when there are more than 3 control points on the curve. I found that the domain of the curve rises when more control points are there, and the Evaluate Point on Curve component would

Re: Random divide

2009-01-15 Thread baldino
ch > segment being a random length.  I cant see how to any of the functions > in the curve>division section of grasshopper can do this.  Little help > please? > > thanks much, > > Alvin

Random divide

2009-01-15 Thread Alvin
Hi, I'm just getting into Grasshopper and need some initial help. I would like to divide a curve into a certain # of segments, with each segment being a random length. I cant see how to any of the functions in the curve>division section of grasshopper can do this. Little help please?

Random Point Matrix

2008-10-13 Thread fraguada
http://groups.google.com/group/grasshopper3d/web/pointMatrixRan.ghx a quick test with mixing up VB.NET and some grasshopper components to generate a matrix of points affected by a small random value. Pretty rudimentary, but just getting going on VB.NET!

Re: Unique Random Numbers

2008-10-07 Thread David Rutten
Hi Andrew, when random numbers are generated as floating point values, they are pretty much guaranteed to be unique. If you need a random distribution of a set of integers, then you need to do the following: 1) Create a set of integers {A}, using the Series component. This set will be ordered

Unique Random Numbers

2008-10-07 Thread Andrew
Hi everyone, Does anyone now how to generate a list of unique random numbers? The random component returns duplicate numbers (when you use integers). I'm sure there is a way to cull out the duplicates so I am left with just the unique items in the list but ideally there would be a boolean i

Re: RANDOM NUMBERS GENERATION

2008-09-10 Thread David Rutten
Hi Carlo, the random number generator returns either integer or floating point numbers. If you pick the floating point option (which is the default), then the chances are exceedingly small that you end up with identical numbers. However, since only a finite number of values actually represent

Re: RANDOM NUMBERS GENERATION

2008-09-10 Thread David Rutten
Hi Carlo, the random number generator returns either integer or floating point numbers. If you pick the floating point option (which is the default), then the chances are exceedingly small that you end up with identical numbers. However, since only a finite number of values actually represent