rand with first tests