is it possible to add random numbers of groups
I'm trying a generator that gives a randum number of individuals, though each individual is composed randomly generated parts (like sex, race, class, age etc.).
Is it possible, with only one $phrase, to create results with 1, 2, 3 or more individuals, and if so, how? take the below- the $phrase starts with Three. is it possible to make this a random number, and withthe following details generated for the number thats generated by the specific $phrase?
Three individuals - [An] [gender] [[race]|human][nationality]] [[spellcaster]|[religiousjob]], [An] [gender] [[race]|[nationality]] [[spellcaster]|[specialjob]], and [An] [gender] human [[upperclass]|[martialjob]] are chosen by [an elected assembly|a council of elders|ballod|ritual|lottery] to defend [an] [city|region|nation|people] from [an] [growing|encroaching|worsening] [Atramental|Firmamental|unknown] [calamity|darkness|doom].
sorry if this doesn't make much sense as I'm new to this. If the idea isn't coming across please ask me and I'll try to clarify