☰
Debian Codegraph
@
0.4.3-1
/
/
tests
/
fake_dists
/
grammar-1.0a4
/
grammar
/
utils.py
☽
☼
tests/fake_dists/grammar-1.0a4/grammar/utils.py
code
plain
raw
symbols
SCIP
Python
Copyright (C) 2012-2013 The Python Software Foundation; Copyright (C) 2012-2013 Vinay Sajip
debian/copyright
1
# -*- coding: utf-8 -*-
2
from
random
import
randint
3
4
def
is_valid_grammar
(sentence):
5
if
randint
(
0
,
10
) <
2
:
6
return
False
7
else
:
8
return
True