代码搜索:Random
找到约 10,000 项符合「Random」的源代码
代码结果 10,000
www.eeworm.com/read/158649/11594879
java randombounds.java
//: c03:RandomBounds.java
// Does Math.random() produce 0.0 and 1.0?
// {RunByHand}
public class RandomBounds {
static void usage() {
System.out.println("Usage: \n\t" +
"RandomBoun
www.eeworm.com/read/158649/11595173
java randvals.java
//: c08:RandVals.java
// Initializing interface fields with
// non-constant initializers.
import java.util.*;
public interface RandVals {
int rint = (int)(Math.random() * 10);
long rlong
www.eeworm.com/read/158619/11597861
m gngauss.m
function [n1,n2]=gngauss(m,sgma)
% [n1 n2]=gngauss(m,sgma)
% [n1 n2]=gngauss(sgma)
% [n1 n2]=gngauss
% GNGAUSS generates two independent gaussian variables with
% mean m & S.D sgma
% if one of
www.eeworm.com/read/348290/11602823
m reciprocal_exchange.m
% low level function for TSP mutation
% reciprocal exchange : two random cities in a tour are swapped
% Representation is an integer specifying which encoding is used
% 1 : adjacency representation
%
www.eeworm.com/read/261978/11612398
v tb_div2.v
`timescale 100ps/100ps
module tb_div_rand;
parameter n = 32; //bit length, should be 32
parameter m = 16; //dot position
parameter seed = 200; //random seed
parameter clock
www.eeworm.com/read/261978/11612408
bak tb_div2.v.bak
`timescale 100ps/100ps
module tb_div_rand;
parameter n = 32; //bit length, should be 32
parameter m = 16; //dot position
parameter seed = 200; //random seed
parameter clock
www.eeworm.com/read/158463/11612970
m gngauss.m
function [gsrv1,gsrv2]=gngauss(m,sgma)
% [gsrv1,gsrv2]=gngauss(m,sgma)
% [gsrv1,gsrv2]=gngauss(sgma)
% [gsrv1,gsrv2]=gngauss
% GNGAUSS generates two independent Gaussian random variables with
www.eeworm.com/read/347997/11619216
c util.c
/* Version 3.3 Last modified: December 26, 1995 */
/*-------------------------------------------------------------------*
* Function Set zero() *
www.eeworm.com/read/347982/11620018
c 29.c
#include
#include
/*返回随机数序列初值*/
double Initial()
{
double init;
struct timeb *tmb;
while(1)
{
ftime(tmb);
/*利用DOS系统的时钟产生随机数序列初值*/
init=tmb->mill