[ '{{repeat(100)}}', { Id: '{{index()}}', // retourne 'M' ou 'F' aléatoirement Civilite: function(tags){ return (tags.gender() == 'female') ? 'F' : 'M'; }, Nom: function(tags){ return tags.surname().toUpperCase(); }, Prenom: function(tags){ return tags.firstName(); }, Adresse: '{{integer(100, 999)}} {{street()}}, {{city()}}, {{state()}}', Ville: '{{state()}}', CodePostal: function(tags){ return String(Math.floor(Math.random()*10))+String(Math.floor(Math.random()*10))+String(Math.floor(Math.random()*10))+String(Math.floor(Math.random()*10))+String(Math.floor(Math.random()*10)); }, DateNaissance: '{{date(new Date(random(1900,2000), random(1,12), random(0,28)), new Date(), "YYYY-MM-dd")}}', LieuNaissance: '{{state()}}', NumSecuriteSociale: function(tags){ return ((this.Civilite=='M')?'1':'2') + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)); }, MedecinTraitant: '{{integer(1,100)}}' } ]