Skip to content

Faker Person Hobby

The faker::person_hobby function generates a random hobby, such as “reading” or “cycling”.

Syntax

faker::person_hobby()

Parameters

  • None: This function does not require any parameters.

Returns

  • String: A random hobby.

Example

Try it out below!
faker::person_hobby()

This function is useful for generating lifestyle-related test data or simulating user input.