Roud to tenth / Arrondir aux dixième

I want round a number to tenth but the function roud rouded to unit, can you help me ?
Je voudrais arrondir un nombre au dixième près, ou trouver un moyen de générer un float aléatoirement qui irait que jusqu’au dixième, quelqu’un peut m’aider ?,