代码搜索:Random
找到约 10,000 项符合「Random」的源代码
代码结果 10,000
www.eeworm.com/read/345167/11834852
cpp rand_01_one.cpp
//rand_01_One.cpp 分别产生10个[0, 1]区间均匀分布的伪随机数
#include //随机算法头文件
#include //输入输出流头文件
#include //时间头文件
using namespace std; //名字空间
void main(void)
{
d
www.eeworm.com/read/258733/11846463
cpp game.cpp
// GAME.CPP--Example from Chapter 3 "An Introduction to C++"
#include
#include
#include
const DODGERS = 0;
const GIANTS = 1;
void main(void)
{
int sc
www.eeworm.com/read/155719/11852295
pas unit7.pas
unit Unit7;
interface
uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
Buttons, ExtCtrls;
type
TAboutBox = class(TForm)
OKButton: TButton;
Timer1: TTimer;
www.eeworm.com/read/155719/11852459
~pas unit7.~pas
unit Unit7;
interface
uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
Buttons, ExtCtrls;
type
TAboutBox = class(TForm)
OKButton: TButton;
Timer1: TTimer;
www.eeworm.com/read/258562/11854963
f90 ex0825.f90
program ex0825
implicit none
interface ! 定义函数func的接口
function random10(lbound, ubound)
implicit none
real :: lbound, ubound
real :: random10(10) ! 传回值是个数组
end function
end interfac
www.eeworm.com/read/258191/11877800
cpp randgentest.cpp
//: C21:RandGenTest.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 1999
// Copyright notice in Copyright.txt
// A little test of the random
www.eeworm.com/read/155167/11892782
c gran.c
/* gran.c - gaussian random number generator */
double ran(); /* uniform generator */
double gran(m, s, iseed) /* usage: x = gran(m, s, &iseed); */
double
www.eeworm.com/read/344239/11894311
java randombounds.java
//: containers/RandomBounds.java
// Does Math.random() produce 0.0 and 1.0?
// {RunByHand}
import static net.mindview.util.Print.*;
public class RandomBounds {
static void usage() {
prin
www.eeworm.com/read/344239/11894398
java prediction.java
//: containers/Prediction.java
// Predicting the weather with groundhogs.
import java.util.*;
public class Prediction {
private static Random rand = new Random(47);
private boolean shadow =
www.eeworm.com/read/344239/11894990
java vowelsandconsonants.java
//: control/VowelsAndConsonants.java
// Demonstrates the switch statement.
import java.util.*;
import static net.mindview.util.Print.*;
public class VowelsAndConsonants {
public static void m