Latest recipes tagged "stdlib" Code RecipesSmall random number generator (C) 2012-05-15T19:49:34-07:00Sachin Joglekar <p style="color: grey"> C recipe 578134 by <a href="/recipes/users/4181845/">Sachin Joglekar</a> (<a href="/recipes/tags/generate/">generate</a>, <a href="/recipes/tags/malloc/">malloc</a>, <a href="/recipes/tags/random/">random</a>, <a href="/recipes/tags/stdlib/">stdlib</a>). </p> <p>Generates random numbers in a given range using malloc function in stdlib.h. Based on the observation that the memory address allocated during malloc is usually 'random' (for humans). takes in two arguments- start of range, end of range.</p>