Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Generate a random string substitution rule
ResourceFunction["RandomSubstitutionSystemRule"][sig,k] generates a random string substitution rule with signature sig and up to k distinct elements. |
Generate a random string substitution system rule:
In[1]:= |
|
Out[1]= |
|
Generate two rules, with 3 distinct elements in each case:
In[2]:= |
|
Out[2]= |
|
Generate a single substitution system rule:
In[3]:= |
|
Out[3]= |
|
Generate multiple substitution system rules:
In[4]:= |
|
Out[4]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License