代码搜索:Random
找到约 10,000 项符合「Random」的源代码
代码结果 10,000
www.eeworm.com/read/395876/8147348
java compareints.java
// control/CompareInts.java
// TIJ4 Chapter Control, Exercise 2, page 139
/* Write a program that generates 25 random int values. For each value, use an
* if-else statement to classify it as greate
www.eeworm.com/read/395876/8147372
java compareintsforever.java
// control/CompareIntsForever.java
// TIJ4 Chapter Control, Exercise 3, page 139
// Modify exercise 2 wtih infinte while loop. Stop prgram with Ctrl-C
import static net.mindview.util.Print.*;
im
www.eeworm.com/read/395876/8147868
java ex23(1).java
// arrays/Ex23.java
// TIJ4 Chapter Arrays, Exercise 23, page 786
// Create an array of Integer fill it with random int values (using
// autoboxing), and sort it into reverse order using a Comparat
www.eeworm.com/read/395876/8148126
java games17.java
// innerclasses/Games17.java
// TIJ4 Chapter Innerclasses, Exercise 17, page 364
/* Modify the solution to Exercise 19 from the Interfaces chapter to use
* anonymous inner classes.
* (Exercise 19
www.eeworm.com/read/395876/8148386
java games19.java
// interfaces/Games19.java
// TIJ4 Chapter Interfaces, Exercise 19, page 342
/* Create a framework using Factory Methods that performs both coin
* tossing and dice tossing.
*/
import java.util.*;
www.eeworm.com/read/395803/8151956
java randomnumber.java
public class randomNumber {
int[] rand(int n, int length) {
int[] rand = new int[n];
for (int i = 0; i < n; i++) {
rand[i] = (int) (Math.random() * 1000 % length) + 1;
}
return rand;
www.eeworm.com/read/395711/8157875
pas unit2.pas
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ExtCtrls, DB, DBTables;
type
TForm2 = class(TForm)
www.eeworm.com/read/295353/8168546
readme
This package implements a general purpose Reed-Solomon encoding and decoding
facility. See the rs.3 man page for details.
To install, simply do the following after extracting this tarball into
an emp
www.eeworm.com/read/295353/8168597
readme
This package implements a general purpose Reed-Solomon encoding and decoding
facility. See the rs.3 man page for details.
To install, simply do the following after extracting this tarball into
an emp
www.eeworm.com/read/295293/8170947
cpp rand_01_one.cpp
//rand_01_One.cpp 分别产生10个[0, 1]区间均匀分布的伪随机数
#include //随机算法头文件
#include //输入输出流头文件
#include //时间头文件
using namespace std; //名字空间
void main(void)
{
d