Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
e01aa53ea61f67418ee14e11289c68992b0f38db
/
.
/
Lib
/
packaging
/
tests
/
fake_dists
/
grammar-1.0a4
/
grammar
/
utils.py
blob: 66ba796c3d149b9bb6c99e5811a7581ec17ba339 [
file
] [
log
] [
blame
]
# -*- coding: utf-8 -*-
from
random
import
randint
def
is_valid_grammar
(
sentence
):
if
randint
(
0
,
10
)
<
2
:
return
False
else
:
return
True