"use strict";
cc._RFpush(module, 'fd651FJ5zpI2a/4iU87YkQy', 'cell');
// Scripts\cell.js

cc.Class({
    "extends": cc.Component,

    properties: {
        icons: {
            "default": [],
            type: cc.SpriteFrame
        },
        pos: cc.Vec2,
        number: 0,
        sfIndex: 0
    },

    // use this for initialization
    onLoad: function onLoad() {
        this.initSpriteFrame();
    },
    initSpriteFrame: function initSpriteFrame() {
        this.sfIndex = getRandomInt(0, this.number);
        var sprite = this.getComponent(cc.Sprite);
        sprite.spriteFrame = this.icons[this.sfIndex];
    }
});
function getRandomInt(min, max) {
    var ratio = Math.random();
    return min + Math.floor((max - min) * ratio);
}

cc._RFpop();