Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Find a random composite number or set of random composite numbers
ResourceFunction["RandomComposite"][n] returns a random composite number up to n. | |
ResourceFunction["RandomComposite"][n,m] returns m random composite numbers up to n. | |
ResourceFunction["RandomComposite"][{min,max}] returns a random composite number between min and max. | |
ResourceFunction["RandomComposite"][n, arrayspec] returns an array of random composite numbers up to n. |
Find a random composite number less than or equal to the a ceiling of the exponential of an integer:
In[1]:= |
Out[1]= |
Find a random composite number between 149 and 404:
In[2]:= |
Out[2]= |
Find a list of 30 random composite numbers between 1097 and 2981:
In[3]:= |
Out[3]= |
Find a 3⨯3 matrix of random composite numbers between 8104 and 22027 and print it in matrix form:
In[4]:= |
Out[4]= |
Find a 3⨯3⨯3 array of random composite numbers between 59875 and 162755 and print it in matrix form:
In[5]:= |
Out[5]= |
Find a 3⨯3⨯3⨯3 tensor of random composite numbers between 442414 and 1202605:
In[6]:= |
Out[6]= |
Find a large random composite up to a googol:
In[7]:= |
Out[7]= |
This work is licensed under a Creative Commons Attribution 4.0 International License