In cyclic groups like G1, if the group has a prime order, then every element of it can be a generator, so check the order using one of the functions in the API. Otherwise, if you don't need to use a prime order group, then a generator should be co-prime with the order of it. Hope that helps a bit
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Excuse me,
In jPBC, how I can get a generator of G1?
Hi Yang,
In cyclic groups like G1, if the group has a prime order, then every element of it can be a generator, so check the order using one of the functions in the API. Otherwise, if you don't need to use a prime order group, then a generator should be co-prime with the order of it. Hope that helps a bit