代码搜索:Random
找到约 10,000 项符合「Random」的源代码
代码结果 10,000
www.eeworm.com/read/245525/12796367
cpp ga.cpp
// gasample.cpp : Defines the entry point for the console application.
//
#include "StdAfx.h"
#include
#include "malloc.h"
#include
#include "stdlib.h"
/* 全局变量 */
struct ind
www.eeworm.com/read/245201/12810888
c alg36.c
#include
#include
#include
int main()
{
vector< int, allocator > vec;
for ( int ix = 0; ix < 20; ix++ )
vec.push_back( ix );
random_shuffle(
www.eeworm.com/read/143979/12825317
py treemodelsort.py
#!/usr/bin/env python
# example treemodelsort.py
import pygtk
pygtk.require('2.0')
import gtk
import random
class TreeModelSortExample:
# close the window and quit
def delete_event(self, w
www.eeworm.com/read/244387/12868971
mak dos.mak
#
# Borland C++ IDE generated makefile
#
.AUTODEPEND
#
# Borland C++ tools
#
IMPLIB = Implib
BCCDOS = Bcc +BccDos.cfg -DBCPATH="$(BCPATH:\=\\)"
TLINK = TLink
TLIB = TLib
TASM = Tasm
#
# I
www.eeworm.com/read/244387/12868979
mak windows.mak
#
# Borland C++ IDE generated makefile
#
.AUTODEPEND
#
# Borland C++ tools
#
IMPLIB = Implib
BCC = Bcc +BccW16.cfg -DBCPATH="$(BCPATH:\=\\)"
TLINK = TLink
TLIB = TLib
BRC = Brc
TASM
www.eeworm.com/read/143472/12873121
c csort.c
/************************************************************************
名称: csort.c
一个动画程序来显示6个排序算法的动作。
运行这个程序要求包含
www.eeworm.com/read/330692/12874710
v mult16.v
// **** Here's a simple, sequential multiplier. Very simple, unsigned..
// Not very well tested, play with testbench, use at your own risk, blah blah blah..
//
//
// Unsigned 16-bit multiply (m
www.eeworm.com/read/330173/12908204
m ldpc_generate.m
function [H] = generate(M,N,t,q,seed)
%[H] = generate(M,N,t,q,seed)
% generates sparse LDPC parity check matrix over GFq
% (first H for GF2 is generated, then elements of GFq are created at random)
www.eeworm.com/read/243823/12914231
m pcr.m
%random data
clear;
close all;
x1=4*rand(100,1);
x2=5*rand(100,1);
x3=4*x1+0.1*x2;
x=[x1,x2,x3];
y=x1+20*x2+20*x3;
[u,s,v]=svd(x);
t1=s(1,1)*u(:,1);
t2=s(2,2)*u(:,2);
t3=s(3,3)*u(:,3);
t=[
www.eeworm.com/read/243633/12930506
c 编随机数.c
/*自编随机数*/
#include"sys\types.h"
#include"sys\timeb.h"
#include
#define ALPHA 3.95 /*宏定义ALPHA值为3.95*/
double init_value(void);
double random(void);
void main()
{
float rdn