搜索资源列表
random-inc
- 用c语言编写的产生正态随机数的源代码: 算法一产生12个(0,1)平均分布的随机函数,用大数定理可以模拟出正态分布。 算法二用到了数学中的雅可比变换,直接生成正态分布,但此算法在计算很大规模的数时 会出现溢出错误。-With the c language normal random number generation source code: Algorithm 1 produces 12 (0,1) the average distribution of the rand
AVERAGE
- 编写程序计算三门课的平均成绩,要求应用程序分别用Java语言三种不同的循环语句实现,每门课的成绩用Math类的random()方法随机产生(random()产生的数值在0和1之间),成绩范围为40~100。 提示:自定义一个类,该类实现一个返回随机数的函数。在main函数里测试时直接调用该类的获取随机数方法。 获得随机数相关的类为:java.lang.Math 需要时可引入该类即:import java.lang.Math -Write a program grade point a
Hopfield
- java 实现的神经网络 解决4色问题 含有随机数生成初始partten-java realization of neural network to solve the issue of 4-color contains random number generator initial partten
shuffle
- 在Java语言中生成随机数相对来说比较简单,因为有一个现成的方法可以使用。在Math类中,Java语言提供了一个叫做random的方法。通过这个方法可以让系统产生随机数。不过默认情况下,其产生的随机数范围比较小,为大于等于0到小于1的double型随机数。虽然其随机数产生的范围比较小,不能够满足日常的需求。如日常工作中可能需要产生整数的随机数。其实,只要对这个方法进行一些灵活的处理,就可以获取任意范围的随机数。 -how to make it in c or c++ using the sh
ex4_3
- JAVA界面设计,按生成随机数按纽产生三个随机整数0到100之间,按计算平均数按纽计算平均值-JAVA interface design, press the button to generate a random number generated three random integer between 0 and 100, the average is calculated by computing the average button
Random
- 这是一个使用java写的随机数生成器,在界面方面使用了substance这个界面框架。-This is a use java to write the random number generator, use the substance in the interface aspects of the interface framework.
dsada
- 本随机数生成器采用java实现,能够生成指定范围内的随机数(The random number generator uses Java to generate random numbers within the specified range)
homeWork_LuckyDraw
- 实现简单的抽奖功能并判断,包括界面、随机数、判断会员卡号(Realize simple lottery function and judge)
Getrandom
- 通过java,获得指定个数随机数,学习随机数使用方法(Obtain a specified number of random numbers)