TILKE is a python module that allows generating randomized formula circuits.
TILKE Circuits + racing line and velocity profile algorithm by Albert Rodas
Make sure you have a recent enough python install the module has been developed and validated on python 3.9
git clone https://github.com/puigde/TILKE.git
For example using miniconda3 and then running
conda create -n tilke_env python=3.9
conda activate tilke_env
cd TILKE
pip install -e .
Take a look at the tutorial file