摘要:
引入有时候我们需要在程序中生成随机数,但是在Objective-c中并没有提供相应的函数,好在C中提供了rand()、srand()、random()、arc4random()几个函数。那么怎么使用呢?下面将简单介绍:使用1、获取一个随机整数范围在:[0,100)包括0,不包括100intx =ar... 阅读全文
摘要:
//// ViewController.m// mapdemo001//// Created by apple on 14-4-28.// Copyright (c) 2014年 apple. All rights reserved.//#import "ViewController.h"#... 阅读全文