Home | History | Annotate | Download | only in functional

Lines Matching full:rnd

452 		de::Random	rnd						(m_seed ^ deInt32Hash(m_iterNdx) ^ 0xacf92e);
458 const deUint32 target = bufferTargets[rnd.getInt(0, DE_LENGTH_OF_ARRAY(bufferTargets)-1)];
459 const bool respecify = m_curSize == 0 || rnd.getFloat() < respecifyProbability;
469 const int size = rnd.getInt(minSize, maxSize);
470 const deUint32 hint = usageHints[rnd.getInt(0, DE_LENGTH_OF_ARRAY(usageHints)-1)];
471 const bool fillWithData = rnd.getFloat() < respecifyDataProbability;
475 fillWithRandomBytes(m_refBuffer.getPtr(), size, rnd.getUint32());
488 const int size = de::clamp(deRoundFloatToInt32((float)m_curSize * deFloatPow(rnd.getFloat(0.0f, 0.7f), 3.0f)), minSize, m_curSize);
489 const int offset = rnd.getInt(0, m_curSize-size);
491 fillWithRandomBytes(m_refBuffer.getPtr()+offset, size, rnd.getUint32());
667 de::Random rnd (23921);
675 spec->target = bufferTargets[rnd.getInt(0, DE_LENGTH_OF_ARRAY(bufferTargets)-1)];
676 spec->usage = usageHints[rnd.getInt(0, DE_LENGTH_OF_ARRAY(usageHints)-1)];
677 spec->size = rnd.getInt(minSize, maxSize);