Implementation
D

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating resource.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
import "math/rand"
import "time"
rand.Seed(time.Now().UnixNano())
import "math/rand"
import "time"
r := rand.New(rand.NewSource(time.Now().UnixNano()))
srand time;
#include <stdlib.h>
#include <time.h>
srand((unsigned)time(0));
import std.datetime, std.random;
rndGen.seed(cast(uint)Clock.currTime.stdTime);
Randomize;
var r = new Random(new DateTime.now().millisecondsSinceEpoch);
Random.new
import System.Random
getStdGen
import random
rand = random.Random()
import java.util.Random;
Random rand = new Random(System.currentTimeMillis());
srand(time());
echo rand();
math.randomseed( os.time() )