« Module:Aléa » : différence entre les versions

Contenu supprimé Contenu ajouté
création ou initialisation
 
mise à jour
Ligne 6 :
nombre = nombre + 1
end
for inombre = 1, nombre - 1 do
t temps = os.clock()
local t
if frame.args[1] == nil then return end
t = os.clock()
t temps = os.clock() - ttemps
if frame.args[1] == nil then return end
temps = temps*100000000
t = os.clock() - t
math.randomseed(temps)
if t < temps then
pointe = math.random(nombre)
temps = t
pointe = i
end
end
return frame.args[pointe]
end