Random shower thought, Re: summoning Has anything been released ?

Does a scroll summon first decide if it’s a 3* 4* or 5*.
Then roll for element.
Or
Then roll for family.

Or is it just every monster has a number, but every number if weighted differently. 

Or some other mad scientist way of deciding when is pulled. 

Just a weird thought, wonder if it’s ever been discussed.