added one more constructor

This commit is contained in:
Menelaos Karavelas 2006-07-21 00:26:28 +00:00
parent ffbf1950a2
commit 549c8cfd1f
2 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,11 @@ public:
typedef R Random;
public:
Random_integral_sites_in_square_2(unsigned int b)
: b_(b), B_(b), r_(0) {
CGAL_precondition( b >= 0 && b <= 52 );
}
Random_integral_sites_in_square_2(unsigned int b, int seed)
: b_(b), B_(b), r_(seed) {
CGAL_precondition( b >= 0 && b <= 52 );

View File

@ -17,6 +17,11 @@ public:
typedef R Random;
public:
Random_integral_sites_on_parabola_2(unsigned int b)
: b_(b), p_(0), r_(0) {
CGAL_precondition( b >= 0 && b <= 26 );
}
Random_integral_sites_on_parabola_2(unsigned int b, int seed)
: b_(b), p_(0), r_(seed) {
CGAL_precondition( b >= 0 && b <= 26 );