category

Coding

14 entries in this category
Parent: None
Siblings: HowTo:11, Life Hacks:1, London:1, Nutrition:1, Reviews:7, Site news:2, Travel:6, Web:1, Work:238
Children: *NIX:2, ASP:3, bookmarklets:1, Javascript / DHTML:2, Microsoft / Windows:1, OS X:2, PHP:2, SQL:1, Testing:2

This is the coding blurb

In this category


Skewing random numbers towards 0

29th May 2006 11:44 | Comments Off
Categories: Coding, HowTo

A quick way to skew random numbers towards 0 is to raise them to some powers - the higher the power, the higher the skew.

var num:Number = Math.pow( Math.random(), 2 );

this is what fritz looks like

Email | Resume

For ease of navigation, posts are classified in categories - this page shows all the posts within one of them.

'Child' lists all the sub-catgories, 'parent' shows the category of which the current one is a child, and siblings are categories which shares the same parent as this one.

RSS

ampersand

Fritz is an Italian chap who's been living in London and working in the digital industry for almost 20 years. He's currently freelancing as technical lead, developer, technical architect, information architect, and producer.

In the past he's been technical director for an integrated digital agency, a chef, and author of comics.