搜索资源列表
ddzfp
- 斗地主发牌算法,这是参考别人的,贴出来供大家参考,其实发牌算法很简单,就是随机数的生成-Landlords licensing algorithm, which is the reference of others, putting them out for reference, in fact, the licensing algorithm is very simple. is the random number generator
SuperMind
- 运行环境:visual studio.net 2003 c#编写的一个猜数字小游戏(由系统生成一个4位随机数,猜中为止)
randomNumber
- 随机生成序列码,由商家id+日期+随机数组成的串码
02050611
- C语言实现的猜数算法,生成一个随机数,然后由用户猜数,猜数正确则输出正确并打印正确的数,不正确则输出比生成的随机数大或小,重新输入,直至猜正确为止。一轮游戏结束后还可由用户选择要不要开始新一轮游戏。
tortoiseandhare
- 我们将用程序来模拟传统的龟兔赛跑问题。我们将采用随机数生成的方法开发这一问题的仿真程序。 再比赛中共设了70个点,每个点代表比赛跑道可能的一个位置。乌龟和兔从第一个点出发,终点是在第70个点上。 时钟按秒来数计。随着时钟的转动,程序能够根据下述规则来调节乌龟和兔子的位置。动物 跑动类型 占用时间 跑动量乌龟 快走 50% 向右3个点 后滑 20% 向左6个点 慢走 30% 向右1个点兔子 睡觉 20% 不动 大后滑 20% 向右9 个点 快走 10% 向左12个点 小步跳 30% 向右1个点 慢
TimerDemo
- 定时器:设定定时器的运行时间、绘制数字的Canvas对象、滚动屏幕、绘制数字的坐标点、用于生成0或1的随机数-Timer: set the timer run-time, rendering the number of Canvas objects, rolling screen, the coordinates of points drawn figures, used to generate a 0 or 1 of the random number
game
- 猜数游戏,计算机生成一个随机数,人输入一个数,并输入此次钱数,如相同,加与输入钱数相同的钱,否则,扣除钱数除以所猜数字与计算机随机数间差值,输入0或所有钱数为0则退出游戏-guessing and betting number game The user starts with 100 dollars, and is able to bet and guess until they quit or have no more money. In each turn, they are aske
nim-game
- nim小游戏 可在dos系统下与计算机玩游戏 让计算机和人较量.在10到100之间生成一个随机数作为初始的石子数目.然后,随机产生0或1,以决定是计算机先玩还是人先玩.然后,再随机产生0或1,以决定计算机采用"聪明"还是"愚蠢"模式.在愚蠢模式中,在轮到计算机时,简单地取走随机数目(介于1到n/2之间)的石子 在聪明模式中,计算机每次取走一定数目的石子,使得剩下的石子数目是2的某次幂减1,例如3,7,15,31,63.这总是可行的,除非当前的石子数正好是2的某次幂减1.在这种情况下,计算机取
RandomNum
- 产生一个一定范围内随机数,可以不包含其中的某些数字,动态生成,界面友好-Generates a random number within a certain range, you can not include some of these numbers, dynamically generated, user-friendly
Test
- 简单的贪吃蛇,没有实现换关等细节,只是做了一个很简单的,可以拿来学习一下C#里面的集合类,生成随机数-Simple Snake, did not materialize for customs, and other details, but made a very simple, can be used to learn about C# inside the collection class to generate random numbers, etc.
GuessNum
- 猜数游戏,自动生成随机数,如果所猜数比随机数打则显示红色,如果小则显示蓝色,直至才对位置-Guess several games, automatically generating random Numbers, if have guess number that have hit than random number red, if small can indicate the blue, until to position
02050611
- C语言实现的猜数算法,生成一个随机数,然后由用户猜数,猜数正确则输出正确并打印正确的数,不正确则输出比生成的随机数大或小,重新输入,直至猜正确为止。一轮游戏结束后还可由用户选择要不要开始新一轮游戏。
ddzfp
- 斗地主发牌算法,这是参考别人的,贴出来供大家参考,其实发牌算法很简单,就是随机数的生成-Landlords licensing algorithm, which is the reference of others, putting them out for reference, in fact, the licensing algorithm is very simple. is the random number generator
ddzfp
- 斗地主发牌算法,这是参考别人的,贴出来供大家参考,其实发牌算法很简单,就是随机数的生成-Landlords licensing algorithm, which is the reference of others, putting them out for reference, in fact, the licensing algorithm is very simple. is the random number generator
GuessNum
- 猜数游戏,自动生成随机数,如果所猜数比随机数打则显示红色,如果小则显示蓝色,直至才对位置-Guess several games, automatically generating random Numbers, if have guess number that have hit than random number red, if small can indicate the blue, until to position
008722
- 用MFC对话框实现约瑟夫环,生成随机数产生出列整数,简单实现-Implemented with MFC dialog box the Joseph link
c_dazhi
- 用C语言写的打字游戏,里面介绍了随机数生成原理,(A typing game written in the C language, which introduces the principle of generating random numbers.)