File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spec/libsass-closed-issues/issue_657/default Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
$values : ();
2
2
3
3
foo {
4
+ $duplicates : 0 ;
4
5
$num : random ();
5
6
$is-number : type-of ($num ) == number;
6
7
$is-within-range : $num >= 0 and $num < 1 ;
7
- $is-random : index ($values , $num ) == null;
8
8
$values : append ($values , $num );
9
9
10
10
@for $i from 1 through 1000 {
11
11
$num : random ();
12
12
$is-number : $is-number and type-of ($num ) == number;
13
13
$is-within-range : $is-within-range and $num >= 0 and $num < 1 ;
14
- $is-random : $is-random and index ($values , $num ) == null;
14
+ @if ( index ($values , $num ) != null) { $duplicates : $duplicates + 1 ; }
15
15
$values : append ($values , $num );
16
16
}
17
17
18
18
is-defined : $num != " random()" ;
19
19
is-number : $is-number ;
20
20
is-within-range : $is-within-range ;
21
- is-random : $is-random ;
21
+ is-random : $duplicates < 25 ;
22
22
}
You can’t perform that action at this time.
0 commit comments