Subject: CGAL users discussion list
List archive
- From: Edoardo Milotti <>
- To:
- Subject: Re: [cgal-discuss] how do you seed the random number generator?
- Date: Sat, 10 Dec 2011 22:59:24 +0100
thanks, but I am not sure this answers my question. From the documentation
it seems that I can start a new instance of CGAL::Random with a given seed,
but not set the seed for the instance of random used by the triangulation
insertion method. But maybe I am wrong …
Cheers,
Edoardo
On 10/dic/2011, at 19:28, Philipp Moeller wrote:
> Edoardo Milotti
> <>
> writes:
>
>> I am developing a program where the order of vertices of a Delaunay
>> triangulation matters, and I wish to obtain the same sequence of vertices
>> in repeated runs. Thus I need to set the seed of the CGAL random number
>> generator. Does anybody know how to do it in the current version of CGAL?
>> Thank you.
>
> CGAL::Random takes an unsigned int as its seed argument and the
> generator constructors take a CGAL::Random as an argument (which
> defaults to a default constructed CGAL::Random).
>
> See:
> http://www.cgal.org/Manual/3.8/doc_html/cgal_manual/Generator_ref/Class_Random.html
> and
> http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Generator_ref/Concept_PointGenerator.html
>
> HTH,
> Philipp
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>
- [cgal-discuss] how do you seed the random number generator?, Edoardo Milotti, 12/10/2011
- <Possible follow-up(s)>
- Re: [cgal-discuss] how do you seed the random number generator?, Philipp Moeller, 12/10/2011
- Re: [cgal-discuss] how do you seed the random number generator?, Edoardo Milotti, 12/10/2011
Archive powered by MHonArc 2.6.16.