Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about grasshopper

Read more about grasshopper

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - grasshopper

Is there is a work around to add random elements to iterating list in C#?

I am trying to generate 10 random points in Grasshopper and add them to a list using the following code: private void RunScript(object x, object y, ref object A) { List<Point3d> pts = new L...
test-img

Karim Yosef Rezk

c#

loops

random

increment

grasshopper

Votes: 0

Answers: 2

Latest Answer

try this, your code can not be compiled, because of wrong using foreach List<Point3D> pts = new List<Point3D> { new Point3D(20, 20, 0)}; Random r = new Random(); int i = 0; ...
test-img

Serge

comment box works only with interval ? tennor connection. Grasshopper Python

I want to create boxes because I want to do an tenor connection between the 2 objects. How can divide an interval with numbers. Because the box comment only work with intervals. Or do someone have ano...
test-img

Lily

python

vector

range

rhino

grasshopper

Votes: 0

Answers: 1

Latest Answer

Your question is a little unclear but to get numbers within an interval you can call the ParameterAt() method on an interval object. So something like this it = Rhino.Geometry.Interval(13,16) nums = l...
test-img

visualizor

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved