Wash the rice and drain it in a sieve to remove excess water.
Finely chop the vegetables (carrot and onion).
In a bowl, mix the rice, chopped vegetables, egg, salt, and pepper evenly.
Wet your hands and shape the mixture into bite-sized balls.
Heat some cooking oil in a pan and cook the rice balls over low heat, turning them until they are golden brown.
Transfer to a plate to serve.