<?xml version="1.0" encoding="utf-8"?>
<snippet name = "随机数" description = "返回 0 和限值之间的一个随机数。" preview="code" type="block">
<insertText location="beforeSelection">
<![CDATA[function randomNumber(limit){
  return Math.floor(Math.random()*limit);
}
]]>
</insertText>
<insertText location="afterSelection"><![CDATA[]]>
</insertText>
</snippet>
