Add rand to scripts