Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Generate a random time
| ResourceFunction["RandomTime"][] generates a random time. | |
| ResourceFunction["RandomTime"][n] generates n random times. | |
| ResourceFunction["RandomTime"][type] generates a random time of type type. | |
| ResourceFunction["RandomTime"][type,n] generates n random times of type type. | 
Generate a random time:
| In[1]:= | ![ResourceFunction["RandomTime"][]](https://www.wolframcloud.com/obj/resourcesystem/images/dbb/dbba3a6a-8424-42e3-8208-c5f5670704c2/7f32aff2992ab935.png) | 
| Out[1]= |  | 
Generate multiple times:
| In[2]:= | ![ResourceFunction["RandomTime"][5]](https://www.wolframcloud.com/obj/resourcesystem/images/dbb/dbba3a6a-8424-42e3-8208-c5f5670704c2/4f7818641aa26628.png) | 
| Out[2]= |  | 
Generate times with minute granularity:
| In[3]:= | ![ResourceFunction["RandomTime"]["Minute", 5]](https://www.wolframcloud.com/obj/resourcesystem/images/dbb/dbba3a6a-8424-42e3-8208-c5f5670704c2/201a42953161e739.png) | 
| Out[3]= |  | 
Generate times with quarter granularity:
| In[4]:= | ![ResourceFunction["RandomTime"]["Quarter", 5]](https://www.wolframcloud.com/obj/resourcesystem/images/dbb/dbba3a6a-8424-42e3-8208-c5f5670704c2/5fdd0613a395bb1f.png) | 
| Out[4]= |  | 
Generate a single random time with half-hour granularity:
| In[5]:= | ![ResourceFunction["RandomTime"]["HalfHour"]](https://www.wolframcloud.com/obj/resourcesystem/images/dbb/dbba3a6a-8424-42e3-8208-c5f5670704c2/563bd007d769d175.png) | 
| Out[5]= |  | 
This work is licensed under a Creative Commons Attribution 4.0 International License