from great_tables import random_id
random_id(), random_id(n=5)('dobgsiinah', 'tffgm')
Helper for creating a random id for an output table.
Usage
A table’s id is the id= attribute of the HTML element that holds it, which CSS (as in opt_css()) can use to target that table alone. Give one with GT(id=) or with_id().
n: int = 10 strEach call gives a new string of random lowercase letters.
Here, the table gets a random ID, which its CSS is then scoped to.