Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# generate random date

private Random gen = new Random();
DateTime RandomDay()
{
    DateTime start = new DateTime(1995, 1, 1);
    int range = (DateTime.Today - start).Days;           
    return start.AddDays(gen.Next(range));
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# random color 
Csharp :: how to disable a gameObject unity c# 
Csharp :: play a sound c# 
Csharp :: c# get all inherited classes of a class 
Csharp :: loop through enum c# 
Csharp :: unity move left and right 
Csharp :: dotnet get directory of executable 
Csharp :: check last character of a string c# 
Csharp :: c# put string to clipboard 
Csharp :: c# copy to clipboard 
Csharp :: unity reload current scene 
Csharp :: c# convert string to double 
Csharp :: c# summary link 
Csharp :: how to change particle system rate over time unity 
Csharp :: unity scriptable object 
Csharp :: unity android back button 
Csharp :: loop through multidimensional array c# 
Csharp :: csharp get integer part of number 
Csharp :: unity movetowards 2d 
Csharp :: c# convert string to char array 
Csharp :: how to make a button open window in wpf 
Csharp :: c# double value with 2 decimal places 
Csharp :: mvc select list order by 
Csharp :: how to make a dragable object in unity2D 
Csharp :: Directory Entry c# get computer list 
Csharp :: application server types in .net 
Csharp :: make mesh follow wheel collider unity 
Csharp :: how to draw a rectangle in monogame 
Csharp :: start new form c# 
Csharp :: move file from one folder to another c# 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =