require 'json'
require 'uuid'
require 'SecureRandom'
require 'random_username'

uuid = UUID.new

list = [];
for i in 1..40000
  mac = SecureRandom.hex(6).scan(/../).join(':')
  name = RandomUsername.username
  online = if SecureRandom.random_number() > 0.90 then 'online' else 'offline' end
  list << {name: name, mac: mac, uuid: uuid.generate, online: online};
end

puts list.to_json
