srand((unsigned)time(0));
Random rng = new Random(DateTime.Now.Day);
auto rng = Random(cast(uint)Clock.currTime.stdTime);
rndGen.seed(cast(uint)Clock.currTime.stdTime);
var r = new Random(new DateTime.now().millisecondsSinceEpoch);
call random_seed (size=k)
allocate (seed(k))
call date_and_time (values=val)
seed = [(173*i**2+4567,i=1,k)]
m = min(8,k)
seed(1:m) = seed(1:m) + val(m:1:-1)
call random_seed (put=seed)
r := rand.New(rand.NewSource(time.Now().UnixNano()))
Random rand = new Random(System.currentTimeMillis());
(setf *random-state* (make-random-state t))
math.randomseed( os.time() )
let d = SystemTime::now()
.duration_since(SystemTime::UNIX_EPOCH)
.expect("Duration since UNIX_EPOCH failed");
let mut rng = StdRng::seed_from_u64(d.as_secs());