代码搜索:Random
找到约 10,000 项符合「Random」的源代码
代码结果 10,000
www.eeworm.com/read/146790/12612484
java whiletest.java
/* 产生随机数,直到符合条件为止。
条件:“产生的数字等于或大于0.99”
*/
public class WhileTest
{
public static void main(String[ ] args)
{
double r=0;
do
{
r=Math.ra
www.eeworm.com/read/146694/12618034
cpp max_a.cpp
//max_a.cpp
#include
#include
#include //randomize(),random
void main()
{ int a,b,c,d;
cout > a >> b >> c >> d;
if (a>b)
www.eeworm.com/read/146694/12618148
cpp stru_stru01.cpp
//stru_stru01.cpp
#include //cin,cout
#include //random()
#include //getch()
struct base
{ char seat[3];
char name[10];
};
struct rec
{ base
www.eeworm.com/read/146694/12618172
cpp stru_ptr01.cpp
//stru_ptr01.cpp
#include //cout,cin
#include //random()
#include //getch()
struct rec
{ int chi,eng,math,total;
float ave;
};
void main()
{ rec *Bil
www.eeworm.com/read/146694/12618186
cpp stru_ptr02.cpp
//stru_ptr02.cpp
#include //cout,cin
#include //random()
#include //getch()
struct rec
{ int chi,eng,math,total;
float ave;
};
void main()
{ rec *Bil
www.eeworm.com/read/146694/12619322
cpp ex06-05.cpp
//EX06-05.cpp
#include //cout,cin
#include // getch()
#include // random
void main()
{ short int a,place,c,c1,c0,i;
randomize();
a = random(10);
cout
www.eeworm.com/read/146632/12629945
h dist.h
// UniformDist.h: interface for the UniformDist class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_UNIFORMDIST_H__AF273825_3FA7_401A_AADC_034FB611D5
www.eeworm.com/read/247557/12651609
~pa huffmaniptfrm.~pa
unit HuffmanIptFrm;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons;
const
MAXN=10;
type
THuffmanIptDlg = class(TForm
www.eeworm.com/read/135897/13889134
java smoke.java
// 程序:烟粒子
// 范例文件:Smoke.java
import java.applet.*;
import java.awt.*;
public class Smoke extends Applet implements Runnable
{
final int Max = 1000;
sparticle p[];
int AppletWidth
www.eeworm.com/read/135897/13889143
java firetree.java
// 程序:烟火树粒子
// 范例文件:FireTree.java
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class FireTree extends Applet implements Runnable
{
final int Max = 1000;
f