Modified random group ID generator to make it easily modifiable