Code.

EAN(bool) Method

Summary

Generates a EAN Code
Namespace
Faker
Containing Type
Code

Syntax

public static string EAN(bool validChecksum = true)

Remarks

Description of the EAN standard is at wikipedia. Checksum routines are at isbn-check

Parameters

Name Type Description
validChecksum bool Indicates whether the generated EAN has a valid checksum or not

Return Value

Type Description
string The generated EAN
GitHub